Documentation ¶
Index ¶
- func NewDealSignerService(h host.Host, authToken string, wallet Wallet) error
- func RequestDealProposalSignatureV1(ctx context.Context, h host.Host, authToken string, ...) (*crypto.Signature, error)
- func RequestDealStatusSignatureV1(ctx context.Context, h host.Host, authToken string, walletAddr string, ...) (*crypto.Signature, error)
- func ValidateDealProposalSignature(proposal market.DealProposal, sig *crypto.Signature) error
- func ValidateDealStatusSignature(walletAddr string, propCid cid.Cid, sig *crypto.Signature) error
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDealSignerService ¶
NewDealSignerService configures a stream handler for the proposal signer protocol.
func RequestDealProposalSignatureV1 ¶
func RequestDealProposalSignatureV1( ctx context.Context, h host.Host, authToken string, proposal market.DealProposal, rwPeerID peer.ID) (*crypto.Signature, error)
RequestDealProposalSignatureV1 request a signature for a deal proposal to a remote wallet.
func RequestDealStatusSignatureV1 ¶
func RequestDealStatusSignatureV1( ctx context.Context, h host.Host, authToken string, walletAddr string, propCid cid.Cid, rwPeerID peer.ID) (*crypto.Signature, error)
RequestDealStatusSignatureV1 request a signature for a deal status request to a remote wallet.
func ValidateDealProposalSignature ¶
func ValidateDealProposalSignature(proposal market.DealProposal, sig *crypto.Signature) error
ValidateDealProposalSignature validates that the signature is valid for the provided deal proposal.
Types ¶
Click to show internal directories.
Click to hide internal directories.