Versions in this module Expand all Collapse all v2 v2.7.1 Feb 16, 2021 v2.7.0 Feb 16, 2021 Changes in this version + const NoSig + const SECP256k1 + const UNKNOWN + const WithSig + func GetOutpointHash(txid string, vout uint32) (string, error) + type Fee struct + BTC *FeeInfo + LBC *FeeInfo + USD *FeeInfo + type FeeInfo struct + Address string + Amount float32 + type Signature struct + func Sign(privKey btcec.PrivateKey, channel StakeHelper, claim StakeHelper, k string) (*Signature, error) + func (s *Signature) LBRYSDKEncode() ([]byte, error) + type Sources struct + BTIH string + LbrySDHash string + URL string + type StakeHelper struct + Claim *pb.Claim + ClaimID []byte + LegacyClaim *legacy_pb.Claim + Payload []byte + Signature []byte + Support *pb.Support + Version version + func DecodeClaimBytes(serialized []byte, blockchainName string) (*StakeHelper, error) + func DecodeClaimHex(serialized string, blockchainName string) (*StakeHelper, error) + func DecodeClaimProtoBytes(serialized []byte, blockchainName string) (*StakeHelper, error) + func DecodeSupportBytes(serialized []byte, blockchainName string) (*StakeHelper, error) + func DecodeSupportProtoBytes(serialized []byte, blockchainName string) (*StakeHelper, error) + func (c *StakeHelper) CompileValue() ([]byte, error) + func (c *StakeHelper) GetPublicKey() (*btcec.PublicKey, error) + func (c *StakeHelper) GetStream() *pb.Stream + func (c *StakeHelper) IsClaim() bool + func (c *StakeHelper) IsSupport() bool + func (c *StakeHelper) LoadFromBytes(raw_claim []byte, blockchainName string) error + func (c *StakeHelper) LoadFromHexString(claim_hex string, blockchainName string) error + func (c *StakeHelper) LoadSupportFromBytes(raw_claim []byte, blockchainName string) error + func (c *StakeHelper) LoadSupportFromHexString(claim_hex string, blockchainName string) error + func (c *StakeHelper) RenderJSON() (string, error) + func (c *StakeHelper) ValidateAddresses(blockchainName string) error + func (c *StakeHelper) ValidateCertificate() error + func (c *StakeHelper) ValidateClaimSignature(certificate *StakeHelper, k string, certificateId string, ...) (bool, error) + func (c *StakeHelper) VerifyDigest(certificate *StakeHelper, signature [64]byte, digest [32]byte) bool + type V1Claim struct + Author string + Contact *int + ContentType string + Description string + Fee *Fee + Language string + License string + PubKey *string + Sources Sources + Thumbnail *string + Title string + Version string + func (c *V1Claim) Unmarshal(value []byte) error + type V2Claim struct + Author string + Contact *int + ContentType string + Description string + Fee *Fee + Language string + License string + LicenseURL *string + NSFW bool + PubKey *string + Sources Sources + Thumbnail *string + Title string + Version string + func (c *V2Claim) Unmarshal(value []byte) error + type V3Claim struct + Author string + Contact *int + ContentType string + Description string + Fee *Fee + Language string + License string + LicenseURL *string + NSFW bool + PubKey *string + Sig *string + Sources Sources + Thumbnail *string + Title string + Version string + func (c *V3Claim) Unmarshal(value []byte) error Other modules containing this package github.com/lbryio/lbry.go/v3