Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlindingFactor ¶
type BlindingFactor [32]byte
func BlindSwitch ¶
func BlindSwitch(blind *BlindingFactor, value uint64) *BlindingFactor
func (*BlindingFactor) Add ¶
func (b *BlindingFactor) Add(blind *BlindingFactor) *BlindingFactor
func (*BlindingFactor) Sub ¶
func (b *BlindingFactor) Sub(blind *BlindingFactor) *BlindingFactor
type Commitment ¶
type Commitment [33]byte
func NewCommitment ¶
func NewCommitment(blind *BlindingFactor, value uint64) *Commitment
func SwitchCommit ¶
func SwitchCommit(blind *BlindingFactor, value uint64) *Commitment
func (*Commitment) PubKey ¶
func (c *Commitment) PubKey() *PublicKey
type OutputMask ¶
type OutputMask struct { Blind *BlindingFactor // contains filtered or unexported fields }
func OutputMaskFromShared ¶
func OutputMaskFromShared(sharedSecret *SecretKey) *OutputMask
Feeds the shared secret 't' into tagged hash functions to derive:
q - the blinding factor v' - the value mask n' - the nonce mask
func (*OutputMask) MaskValue ¶
func (om *OutputMask) MaskValue(value uint64) uint64
type StealthAddress ¶
type StealthAddress struct {
Scan, Spend *PublicKey
}
func (*StealthAddress) A ¶
func (sa *StealthAddress) A() *PublicKey
func (*StealthAddress) B ¶
func (sa *StealthAddress) B() *PublicKey
func (*StealthAddress) Equal ¶
func (sa *StealthAddress) Equal(addr *StealthAddress) bool
Click to show internal directories.
Click to hide internal directories.