Documentation ¶
Index ¶
- type KeyPairManager
- func (keyPairHandler *KeyPairManager) MustGetAddress(keyPair *ed25519.KeyPair) ledgerstate.Address
- func (keyPairHandler *KeyPairManager) MustGetAgentID(keyPair *ed25519.KeyPair) iscp.AgentID
- func (keyPairHandler *KeyPairManager) NewKeyPair(seed ...*ed25519.Seed) *ed25519.KeyPair
- func (keyPairHandler *KeyPairManager) NewKeyPairWithFunds(seed ...*ed25519.Seed) *ed25519.KeyPair
- func (keyPairHandler *KeyPairManager) RequireL1Balance(keyPair *ed25519.KeyPair, color colored.Color, expectedBalance uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPairManager ¶
type KeyPairManager struct {
// contains filtered or unexported fields
}
KeyPairManager manipulates signature structures
func (*KeyPairManager) MustGetAddress ¶
func (keyPairHandler *KeyPairManager) MustGetAddress(keyPair *ed25519.KeyPair) ledgerstate.Address
MustGetAddress gets the Address (from L1) corresponding to specified signatureScheme. Fails test on error.
func (*KeyPairManager) MustGetAgentID ¶
func (keyPairHandler *KeyPairManager) MustGetAgentID(keyPair *ed25519.KeyPair) iscp.AgentID
MustGetAgentID gets the AgentID corresponding to specified signatureScheme. Fails test on error.
func (*KeyPairManager) NewKeyPair ¶
func (keyPairHandler *KeyPairManager) NewKeyPair(seed ...*ed25519.Seed) *ed25519.KeyPair
NewKeyPair generates a private/public key pair. Fails test on error.
func (*KeyPairManager) NewKeyPairWithFunds ¶
func (keyPairHandler *KeyPairManager) NewKeyPairWithFunds(seed ...*ed25519.Seed) *ed25519.KeyPair
NewKeyPairWithFunds generates a private/public key pair and assigns 1337 iota tokens to it (amount of funds is defined in utxodb.RequestFundsAmount)
func (*KeyPairManager) RequireL1Balance ¶
func (keyPairHandler *KeyPairManager) RequireL1Balance(keyPair *ed25519.KeyPair, color colored.Color, expectedBalance uint64)
RequireL1Balance verifies if the key pair has the expected balance of the specified color in L1. Fails test if balance is not equal to expectedBalance.
Click to show internal directories.
Click to hide internal directories.