Uses of Class
convex.core.data.AccountKey
Packages that use AccountKey
Package
Description
Fundamental Convex classes used for the decentralised network
Crypto algorithms used within Convex, particularly for digital signatures and
cryptographic hashes
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
Package used to create genesis states for new Convex networks
Core CVM implementation
-
Uses of AccountKey in convex.core
Methods in convex.core that return AccountKeyModifier and TypeMethodDescriptionBeliefMerge.getAccountKey()
Get the address of the current Peer (the one performing the merge)Peer.getPeerKey()
Gets the Peer Key of this Peer.Methods in convex.core that return types with arguments of type AccountKeyModifier and TypeMethodDescriptionState.computeStakes()
Computes the weighted stake for each peer.Belief.getOrders()
Get the map of orders for this BeliefBelief.getOrdersHashMap()
Gets a new HashMap containing all OrdersState.getPeers()
Gets the map of Peers for this StateMethods in convex.core with parameters of type AccountKeyModifier and TypeMethodDescriptionBelief.getOrder
(AccountKey address) Gets the current Order for a given Address within this Belief.Peer.getOrder
(AccountKey peerKey) Gets the current chain this Peer sees for a given peer addressState.getPeer
(AccountKey peerAddress) Gets the PeerStatus record for the given Address, or null if it does not existState.withPeer
(AccountKey peerKey, PeerStatus updatedPeer) Updates the specified peer statusMethod parameters in convex.core with type arguments of type AccountKeyModifier and TypeMethodDescriptionstatic Belief
Belief.create
(HashMap<AccountKey, SignedData<Order>> orderMap) static State
State.create
(AVector<AccountStatus> accounts, BlobMap<AccountKey, PeerStatus> peers, AVector<ACell> globals, BlobMap<ABlob, AVector<ACell>> schedule) Create a Statestatic double
BeliefMerge.prepareStakedOrders
(AMap<AccountKey, SignedData<Order>> peerOrders, HashMap<AccountKey, Double> peerStakes, HashMap<Order, Double> dest) Compute the total stake for every distinct Order seen.static double
BeliefMerge.prepareStakedOrders
(AMap<AccountKey, SignedData<Order>> peerOrders, HashMap<AccountKey, Double> peerStakes, HashMap<Order, Double> dest) Compute the total stake for every distinct Order seen.Belief.withOrders
(BlobMap<AccountKey, SignedData<Order>> newOrders) Updates this Belief with a new set of Chains for each peer addressState.withPeers
(BlobMap<AccountKey, PeerStatus> newPeers) Updates the Peers in this State -
Uses of AccountKey in convex.core.crypto
Methods in convex.core.crypto that return AccountKeyModifier and TypeMethodDescriptionstatic AccountKey
AKeyPair.extractAccountKey
(PublicKey publicKey) Extracts an AccountKey from an Ed25519 public keyabstract AccountKey
AKeyPair.getAccountKey()
Gets the Account Public Key of this KeyPairWalletEntry.getAccountKey()
Methods in convex.core.crypto with parameters of type AccountKeyModifier and TypeMethodDescriptionabstract boolean
AProvider.verify
(ASignature signature, AArrayBlob message, AccountKey publicKey) Verify an Ed25519 Signatureabstract boolean
ASignature.verify
(AArrayBlob message, AccountKey publicKey) Checks if the signature is valid for a given message hashboolean
Ed25519Signature.verify
(AArrayBlob message, AccountKey publicKey) static boolean
Providers.verify
(ASignature signature, AArrayBlob message, AccountKey publicKey) -
Uses of AccountKey in convex.core.crypto.bc
Methods in convex.core.crypto.bc that return AccountKeyMethods in convex.core.crypto.bc with parameters of type AccountKeyModifier and TypeMethodDescriptionboolean
BCProvider.verify
(ASignature signature, AArrayBlob message, AccountKey publicKey) -
Uses of AccountKey in convex.core.data
Methods in convex.core.data that return AccountKeyModifier and TypeMethodDescriptionstatic AccountKey
Creates an AccountKey from a blob.static AccountKey
Creates a "Dummy" Address that is not a valid public key, and therefore cannot have valid signed transactions.static AccountKey
AccountKey.fromChecksumHex
(String hexString) Constructs an AccountKey object from a checksummed hex string.static AccountKey
Constructs an AccountKey object from a hex string.static AccountKey
AccountKey.fromHexOrNull
(AString a) static AccountKey
AccountKey.fromHexOrNull
(String hexString) Constructs an AccountKey object from a hex stringAccountStatus.getAccountKey()
Gets the public key for this Account.SignedData.getAccountKey()
Gets the public key of the signer.static AccountKey
Attempts to parse an account key on best efforts basis.static AccountKey
Attempts to parse account key.static AccountKey
static AccountKey
AccountKey.readRaw
(ByteBuffer data) static AccountKey
AccountKey.wrap
(byte[] data) Wraps the specified bytes as an AccountKey object.static AccountKey
AccountKey.wrap
(byte[] data, int offset) Wraps the specified bytes as an AccountKey object.Methods in convex.core.data with parameters of type AccountKeyModifier and TypeMethodDescriptionstatic AccountStatus
AccountStatus.create
(long sequence, long balance, AccountKey key) Create a regular account, with the specified balance and zero allowancestatic AccountStatus
AccountStatus.create
(long balance, AccountKey key) static <T extends ACell>
SignedData<T>SignedData.create
(AccountKey address, ASignature sig, Ref<T> ref) Creates a SignedData object with the given parameters.boolean
AccountKey.equals
(AccountKey o) AccountStatus.withAccountKey
(AccountKey newKey) -
Uses of AccountKey in convex.core.init
Method parameters in convex.core.init with type arguments of type AccountKeyModifier and TypeMethodDescriptionstatic State
Init.createBaseState
(List<AccountKey> genesisKeys) static State
Init.createState
(List<AccountKey> genesisKeys) -
Uses of AccountKey in convex.core.lang
Fields in convex.core.lang with type parameters of type AccountKeyMethods in convex.core.lang that return AccountKeyModifier and TypeMethodDescriptionstatic AccountKey
RT.castAccountKey
(ACell a) Coerce to an AccountKey.static AccountKey
RT.ensureAccountKey
(ACell a) Implicit cast to an AccountKey.Methods in convex.core.lang with parameters of type AccountKeyModifier and TypeMethodDescriptionContext.createAccount
(AccountKey key) Create a new Account with a given AccountKey (may be null for actors etc.)Context.createPeer
(AccountKey accountKey, long initialStake) Creates a new peer with the specified stake.Context.setAccountKey
(AccountKey publicKey) Sets the public key for the current accountContext.setDelegatedStake
(AccountKey peerKey, long newStake) Sets the delegated stake on a specified peer to the specified level.Context.setPeerData
(AccountKey peerKey, AHashMap<ACell, ACell> data) Sets peer data.Context.setPeerStake
(AccountKey peerKey, long newStake) Sets the stake for a given Peer, transferring coins from the current address.