Versions in this module Expand all Collapse all v0 v0.0.2 Mar 10, 2025 Changes in this version type FinalizeTxParam + TxHardforkId uint64 v0.0.1 Mar 9, 2025 Changes in this version + var CRYPTO_HDS_OUT_AMOUNT_BLINDING_MASK = []byte("ZANO_HDS_OUT_AMOUNT_BLIND_MASK_\x00") + type Address struct + Flags uint8 + PaymentId []byte + SpendKey []byte + Type AddressType + ViewKey []byte + func ParseAddress(addr string) (*Address, error) + func (addr *Address) Debug() string + func (addr *Address) SetPaymentId(paymentId []byte) error + func (addr *Address) String() string + type AddressType uint64 + const PublicAddress + const PublicAuditAddress + const PublicAuditIntegAddress + const PublicIntegAddress + const PublicIntegAddressV2 + func (a AddressType) Auditable() bool + func (a AddressType) HasFlags() bool + func (a AddressType) String() string + type FinalizeTxParam struct + Attachments []*zanobase.Variant + CryptAddress *zanobase.AccountPublicAddr + ExpirationTime uint64 + Extra []*zanobase.Variant + Flags uint8 + ModeSeparateFee uint64 + MultisigId zanobase.Value256 + PreparedDestinations []*TxDest + SelectedTransfers []zanobase.Varint + Shuffle bool + Sources []*TxSource + SpendPubKey *zanobase.Point + TxOutsAttr uint8 + TxVersion uint64 + UnlockTime uint64 + func ParseFTP(buf, viewSecretKey []byte) (*FinalizeTxParam, error) + type FinalizedTx struct + Derivation zanobase.Value256 + FTP *FinalizeTxParam + HtlcOrigin string + OneTimeKey *zanobase.Scalar + OutsKeyImages []*zanobase.KeyImageIndex + Tx *zanobase.Transaction + TxId zanobase.Value256 + WasNotPrepared bool + func ParseFinalized(buf, viewSecretKey []byte) (*FinalizedTx, error) + type GenContext struct + type TxDest struct + Addr []*zanobase.AccountPublicAddr + Amount uint64 + AmountToProvide uint64 + AssetId *zanobase.Point + Flags uint64 + HtlcOptions *TxDestHtlcOut + MinimumSigs uint64 + UnlockTime uint64 + func (dst *TxDest) AmountCommitment(scalar *edwards25519.Scalar, ogc *zanobase.GenContext, i int) *edwards25519.Point + func (dst *TxDest) BlindedAssetId(scalar *edwards25519.Scalar, ogc *zanobase.GenContext, i int) *edwards25519.Point + func (dst *TxDest) ConcealingPoint(scalar *edwards25519.Scalar, ogc *zanobase.GenContext, i int) *edwards25519.Point + func (dst *TxDest) StealthAddress(scalar *edwards25519.Scalar, ogc *zanobase.GenContext, i int) *edwards25519.Point + type TxDestHtlcOut struct + Expiration uint64 + HtlcHash zanobase.Value256 + type TxSource struct + Amount uint64 + HtlcOrigin string + MsKeysCount uint64 + MsSigsCount uint64 + MultisigId zanobase.Value256 + Outputs []*TxSourceOutputEntry + RealOutAmountBlindingMask *zanobase.Scalar + RealOutAssetIdBlindingMask *zanobase.Scalar + RealOutInTxIndex uint64 + RealOutTxKey *zanobase.Point + RealOutput uint64 + SeparatelySignedTxComplete bool + TransferIndex uint64 + func (src *TxSource) IsZC() bool + type TxSourceOutputEntry struct + AmountCommitment *zanobase.Point + BlindedAssetID *zanobase.Point + ConcealingPoint *zanobase.Point + OutReference *zanobase.Variant + StealthAddress *zanobase.Point + type Wallet struct + Flags uint8 + SpendPrivKey *edwards25519.Scalar + SpendPubKey *edwards25519.Point + ViewPrivKey *edwards25519.Scalar + ViewPubKey *edwards25519.Point + func LoadSpendSecret(pk []byte, flags uint8) (*Wallet, error) + func (w *Wallet) Address() *Address + func (w *Wallet) Encrypt(data any) ([]byte, error) + func (w *Wallet) ParseFTP(buf []byte) (*FinalizeTxParam, error) + func (w *Wallet) ParseFinalized(buf []byte) (*FinalizedTx, error) + func (w *Wallet) Sign(rnd io.Reader, ftp *FinalizeTxParam, oneTimeKey *edwards25519.Scalar) (*FinalizedTx, error)