Uses of Class
convex.core.data.AccountKey
Packages that use AccountKey
Package
Description
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
-
Uses of AccountKey in convex.core
Methods in convex.core that return AccountKeyModifier and TypeMethodDescriptionMergeContext.getAccountKey()
Get the address of the current Peer (the one performing the merge)Block.getPeer()
Gets the Peer for this blockPeer.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 BeliefState.getPeers()
Gets the map of Peers for this StateMethods in convex.core with parameters of type AccountKeyModifier and TypeMethodDescriptionstatic Block
Block.create(long timestamp, AccountKey peerKey, AVector<SignedData<ATransaction>> transactions)
Creates a block with the given transactions.static Block
Block.create(long timestamp, List<SignedData<ATransaction>> transactions, AccountKey peerKey)
Creates a block with the given timestamp and transactionsBelief.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 existstatic Block
Block.of(long timestamp, AccountKey peerKey, SignedData<ATransaction>... transactions)
Creates a block with the given transactions.State.withPeer(AccountKey peerKey, PeerStatus updatedPeer)
Updates the specified peer statusMethod parameters in convex.core with type arguments of type AccountKeyModifier and TypeMethodDescriptionstatic State
State.create(AVector<AccountStatus> accounts, BlobMap<AccountKey,PeerStatus> peers, AVector<ACell> globals, BlobMap<ABlob,AVector<ACell>> schedule)
Create a Statestatic double
Belief.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
Belief.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 TypeMethodDescriptionabstract AccountKey
AKeyPair.getAccountKey()
Gets the Account Public Key of this KeyPairEd25519KeyPair.getAccountKey()
WalletEntry.getAccountKey()
Methods in convex.core.crypto with parameters of type AccountKeyModifier and TypeMethodDescriptionstatic AKeyPair
AKeyPair.create(AccountKey publicKey, Blob encodedPrivateKey)
Create a key pair with the given Address and encoded private keystatic Ed25519KeyPair
Ed25519KeyPair.create(AccountKey accountKey, Blob encodedPrivateKey)
Create a key pair given a public AccountKey and a encoded Blobabstract boolean
ASignature.verify(ABlob message, AccountKey publicKey)
Checks if the signature is valid for a given message hashboolean
Ed25519Signature.verify(ABlob message, AccountKey address)
-
Uses of AccountKey in convex.core.data
Fields in convex.core.data declared as AccountKeyMethods 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
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, AMap<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.