Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2024 Changes in this version + const DefaultMaxBytes + var PROTOCOL_ID = []byte + func ExtractPushData(version uint16, pkScript []byte) ([]byte, error) + type BitcoinDA struct + func NewBitcoinDA(relayer *Relayer) *BitcoinDA + func (b *BitcoinDA) Commit(ctx context.Context, daBlobs []da.Blob, ns da.Namespace) ([]da.Commitment, error) + func (b *BitcoinDA) Get(ctx context.Context, ids []da.ID, ns da.Namespace) ([]da.Blob, error) + func (b *BitcoinDA) GetIDs(ctx context.Context, height uint64, ns da.Namespace) ([]da.ID, error) + func (b *BitcoinDA) GetProofs(ctx context.Context, daIDs []da.ID, ns da.Namespace) ([]da.Proof, error) + func (b *BitcoinDA) MaxBlobSize(ctx context.Context) (uint64, error) + func (b *BitcoinDA) Submit(ctx context.Context, daBlobs []da.Blob, gasPrice float64, ns da.Namespace) ([]da.ID, error) + func (b *BitcoinDA) Validate(ctx context.Context, ids []da.ID, daProofs []da.Proof, ns da.Namespace) ([]bool, error) + type Config struct + DisableTLS bool + HTTPPostMode bool + Host string + Pass string + User string + type Relayer struct + func NewRelayer(config Config) (*Relayer, error) + func (r Relayer) Read(height uint64) ([][]byte, error) + func (r Relayer) ReadTransaction(hash *chainhash.Hash) ([]byte, error) + func (r Relayer) Write(data []byte) (*chainhash.Hash, error)