Versions in this module Expand all Collapse all v1 v1.11.0 Oct 31, 2023 Changes in this version + const Cube + const FiveW + const Inverse + const MainNet + const NullNet + const Quint + const Sept + const TestNet + const Three + const ThreeW + func NewKeys() (*PublicKey, *SecretKey, error) + func NewKeysFromReader(reader io.Reader) (*PublicKey, *SecretKey, error) + type BitVector struct + func NewBitVector(data []byte, length int) *BitVector + func (vector *BitVector) Append(bit byte) + func (vector *BitVector) Bytes() []byte + func (vector *BitVector) Delete(index int) + func (vector *BitVector) Element(i int) byte + func (vector *BitVector) Insert(bit byte, index int) + func (vector *BitVector) Length() int + func (vector *BitVector) Set(bit byte, index int) + type Context struct + func (ctx *Context) Digest() *fq.Fq + func (ctx *Context) Init(pType Permutation, networkId NetworkType) *Context + func (ctx *Context) Update(fields []*fp.Fp) + type MinaTSchnorrHandler struct + func (m MinaTSchnorrHandler) DeriveChallenge(msg []byte, pubKey curves.Point, r curves.Point) (curves.Scalar, error) + type NetworkType int + type Permutation int + func (p Permutation) Permute(ctx *Context) + type PublicKey struct + func (pk *PublicKey) ParseAddress(b58 string) error + func (pk *PublicKey) SetPointPallas(pallas *curves.PointPallas) + func (pk *PublicKey) UnmarshalBinary(input []byte) error + func (pk *PublicKey) VerifyMessage(sig *Signature, message string) error + func (pk *PublicKey) VerifyTransaction(sig *Signature, transaction *Transaction) error + func (pk PublicKey) GenerateAddress() string + func (pk PublicKey) MarshalBinary() ([]byte, error) + type SBox int + func (sbox SBox) Exp(f *fp.Fp) + type SecretKey struct + func (sk *SecretKey) SetFq(fq *fq.Fq) + func (sk *SecretKey) SignMessage(message string) (*Signature, error) + func (sk *SecretKey) SignTransaction(transaction *Transaction) (*Signature, error) + func (sk *SecretKey) UnmarshalBinary(input []byte) error + func (sk SecretKey) GetPublicKey() *PublicKey + func (sk SecretKey) MarshalBinary() ([]byte, error) + type Signature struct + R *fp.Fp + S *fq.Fq + func (sig *Signature) UnmarshalBinary(input []byte) error + func (sig Signature) MarshalBinary() ([]byte, error) + type Transaction struct + Amount uint64 + Fee uint64 + FeePayerPk *PublicKey + FeeToken uint64 + Locked bool + Memo string + NetworkId NetworkType + Nonce uint32 + ReceiverPk *PublicKey + SourcePk *PublicKey + Tag [3]bool + TokenId uint64 + ValidUntil uint32 + func (txn *Transaction) MarshalBinary() ([]byte, error) + func (txn *Transaction) UnmarshalBinary(input []byte) error + func (txn *Transaction) UnmarshalJSON(input []byte) error