Documentation ¶
Index ¶
- func Address(params *dagconfig.Params, pubKeys [][]byte, minimumSignatures uint32, ...) (util.Address, error)
- func CreateKeyPair(ecdsa bool) ([]byte, []byte, error)
- func CreateUnsignedTransaction(pubKeys [][]byte, minimumSignatures uint32, ecdsa bool, payments []*Payment, ...) ([]byte, error)
- func ExtractTransaction(psTxBytes []byte) (*externalapi.DomainTransaction, error)
- func IsTransactionFullySigned(psTxBytes []byte) (bool, error)
- func PublicKeyFromPrivateKey(privateKeyBytes []byte) ([]byte, error)
- func Sign(privateKeys [][]byte, serializedPSTx []byte, ecdsa bool) ([]byte, error)
- type Payment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Address ¶
func Address(params *dagconfig.Params, pubKeys [][]byte, minimumSignatures uint32, ecdsa bool) (util.Address, error)
Address returns the address associated with the given public keys and minimum signatures parameters.
func CreateKeyPair ¶
CreateKeyPair generates a private-public key pair
func CreateUnsignedTransaction ¶
func CreateUnsignedTransaction( pubKeys [][]byte, minimumSignatures uint32, ecdsa bool, payments []*Payment, selectedUTXOs []*externalapi.OutpointAndUTXOEntryPair) ([]byte, error)
CreateUnsignedTransaction creates an unsigned transaction
func ExtractTransaction ¶
func ExtractTransaction(psTxBytes []byte) (*externalapi.DomainTransaction, error)
ExtractTransaction extracts a domain transaction from partially signed transaction after all of the relevant parties have signed it.
func IsTransactionFullySigned ¶
IsTransactionFullySigned returns whether the transaction is fully signed and ready to broadcast.
func PublicKeyFromPrivateKey ¶
PublicKeyFromPrivateKey returns the public key associated with a private key
Types ¶
Click to show internal directories.
Click to hide internal directories.