Skip to content

Commit

Permalink
Use core payment metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mooselumph committed Oct 21, 2024
1 parent d7ab758 commit 336ae40
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions core/v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package corev2
import (
"math"

"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/encoding"
)

Expand Down Expand Up @@ -37,7 +38,7 @@ type BlobHeader struct {
QuorumNumbers []uint8

// PaymentHeader contains the payment information for the blob
PaymentHeader
core.PaymentMetadata

// AuthenticationData is the signature of the blob header by the account ID
AuthenticationData []byte `json:"authentication_data"`
Expand All @@ -59,16 +60,6 @@ func (b *BlobHeader) GetEncodingParams() (encoding.EncodingParams, error) {

}

type PaymentHeader struct {
// AccountID is the account that is paying for the blob to be stored. AccountID is hexadecimal representation of the ECDSA public key
AccountID string

// Cumulative Payment
CumulativePayment uint64

BinIndex uint64
}

type BlobCertificate struct {
BlobHeader

Expand Down

0 comments on commit 336ae40

Please sign in to comment.