Documentation ¶
Index ¶
Constants ¶
View Source
const OutputDescriptionLength = 948
View Source
const SaplingExtendedFullViewingKeyLength = 169
Variables ¶
View Source
var ( ZcashIVKPersonality = []byte{'Z', 'c', 'a', 's', 'h', 'i', 'v', 'k'} ZcashDiversifyPersonality = []byte{'Z', 'c', 'a', 's', 'h', '_', 'g', 'd'} ZcashSaplingKDFPersonality = []byte("Zcash_SaplingKDF") ZcashPRFExpandPersonality = []byte("Zcash_ExpandSeed") )
View Source
var (
ErrKeyType = errors.New("not a sapling viewing key")
)
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct {
// contains filtered or unexported fields
}
Note is a decrypted Sapling note
type NoteVersion ¶
type NoteVersion byte
NoteVersion indicates what type of Sapling note plaintext we're expecting
const ( // BeforeZIP212 is the NoteVersion from before Canopy activates BeforeZIP212 NoteVersion = 0x01 // AfterZIP212 is the NoteVersion from after Canopy activates AfterZIP212 NoteVersion = 0x02 )
type OutputDescription ¶
type OutputDescription struct {
// contains filtered or unexported fields
}
func (*OutputDescription) UnmarshalBinary ¶
func (od *OutputDescription) UnmarshalBinary(data []byte) error
UnmarshalBinary unpacks an OutputDescription struct to its constituent elements but does no further interpretation.
type PaymentAddress ¶
type PaymentAddress struct {
// contains filtered or unexported fields
}
func NewPaymentAddress ¶
func NewPaymentAddress(d []byte, ivk *jubjub.Scalar) (*PaymentAddress, error)
NewPaymentAddress returns the PaymentAddress for this incoming viewing key and diversifier.
type ViewingKey ¶
type ViewingKey struct {
// contains filtered or unexported fields
}
ViewingKey is a Sapling full viewing key, stored in raw bytes.
func NewViewingKey ¶
func NewViewingKey(encoded string) (*ViewingKey, error)
NewViewingKey decodes a bech32-encoded full viewing key of the type zcashd exports.
func (*ViewingKey) Ivk ¶
func (vk *ViewingKey) Ivk() []byte
Ivk derives the incoming viewing key and returns a new copy.
func (*ViewingKey) Ovk ¶
func (vk *ViewingKey) Ovk() []byte
Ovk returns a new copy of the outgoing view key.
Click to show internal directories.
Click to hide internal directories.