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
Fields in convex.core with type parameters of type AccountKeyMethods 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 Public 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 BeliefBelief.create(HashMap<AccountKey, SignedData<Order>> orderMap) static StateState.create(AVector<AccountStatus> accounts, Index<AccountKey, PeerStatus> peers, AVector<ACell> globals, Index<ABlob, AVector<ACell>> schedule) Create a Statestatic doubleBeliefMerge.prepareStakedOrders(AMap<AccountKey, SignedData<Order>> peerOrders, HashMap<AccountKey, Double> peerStakes, HashMap<Order, Double> dest) Compute the total stake for every distinct Order seen.static doubleBeliefMerge.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(Index<AccountKey, SignedData<Order>> newOrders) Updates this Belief with a new set of Chains for each peer addressState.withPeers(Index<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 AccountKeyAKeyPair.extractAccountKey(PublicKey publicKey) Extracts an AccountKey from an Ed25519 public keyabstract AccountKeyAKeyPair.getAccountKey()Gets the Account Public Key of this KeyPairMethods in convex.core.crypto with parameters of type AccountKeyModifier and TypeMethodDescriptionabstract booleanAProvider.verify(ASignature signature, AArrayBlob message, AccountKey publicKey) Verify an Ed25519 Signatureabstract booleanASignature.verify(AArrayBlob message, AccountKey publicKey) Checks if the signature is valid for a given message hashbooleanEd25519Signature.verify(AArrayBlob message, AccountKey publicKey) static booleanProviders.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 TypeMethodDescriptionbooleanBCProvider.verify(ASignature signature, AArrayBlob message, AccountKey publicKey) -
Uses of AccountKey in convex.core.crypto.wallet
Methods in convex.core.crypto.wallet that return AccountKeyModifier and TypeMethodDescriptionHotWalletEntry.getPublicKey()IWalletEntry.getPublicKey()Get the public key associated with this wallet entryMethods in convex.core.crypto.wallet with parameters of type AccountKeyModifier and TypeMethodDescriptionvoidIWallet.getKeyPair(AccountKey pubKey) voidPKCS12Wallet.getKeyPair(AccountKey pubKey) -
Uses of AccountKey in convex.core.data
Fields in convex.core.data declared as AccountKeyMethods in convex.core.data that return AccountKeyModifier and TypeMethodDescriptionstatic AccountKeyCreates an AccountKey from a blob.static AccountKeyCreates a "Dummy" Address that is not a valid public key, and therefore cannot have valid signed transactions.static AccountKeyAccountKey.fromChecksumHex(String hexString) Constructs an AccountKey object from a checksummed hex string.static AccountKeyConstructs an AccountKey object from a hex string.static AccountKeyAccountKey.fromHexOrNull(AString a) static AccountKeyAccountKey.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 AccountKeyAttempts to parse an account key on best efforts basis.static AccountKeyAttempts to parse account key.static AccountKeystatic AccountKeyAccountKey.readRaw(ByteBuffer data) static AccountKeyAccountKey.wrap(byte[] data) Wraps the specified bytes as an AccountKey object.static AccountKeyAccountKey.wrap(byte[] data, int offset) Wraps the specified bytes as an AccountKey object.Methods in convex.core.data with parameters of type AccountKeyModifier and TypeMethodDescriptionbooleanSignedData.checkSignature(AccountKey publicKey) Validates the signature in this SignedData instance.static AccountStatusAccountStatus.create(long sequence, long balance, AccountKey key) Create a regular account, with the specified balance and zero memory allowancestatic AccountStatusAccountStatus.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.booleanAccountKey.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 StateInit.createBaseState(List<AccountKey> genesisKeys) Creates the base genesis state (before deployment of standard libraries and actors)static StateInit.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 AccountKeyRT.castAccountKey(ACell a) Coerce to an AccountKey.static AccountKeyRT.ensureAccountKey(ACell a) Implicit cast to an AccountKey.Methods in convex.core.lang with parameters of type AccountKeyModifier and TypeMethodDescriptionContext.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.