Performs preliminary validation of a new group public key. The group public key must be unique and have 64 bytes in length. If the validation fails, the function reverts. This function must be called first for a public key of a wallet added with addWallet
function.
self
struct Wallets.Data
publicKey
bytes
Uncompressed public key of a new wallet.
Registers a new wallet. This function does not validate parameters. The code calling this function must call validatePublicKey
first.
Uses a public key hash as a unique identifier of a wallet.
self
struct Wallets.Data
membersIdsHash
bytes32
Keccak256 hash of group members identifiers array
publicKey
bytes
Uncompressed public key
walletID
bytes32
Wallet's ID
publicKeyX
bytes32
Wallet's public key's X coordinate
publicKeyY
bytes32
Wallet's public key's Y coordinate
Deletes wallet with the given ID from the registry. Reverts if wallet with the given ID has not been registered or if it has already been closed.
Checks if a wallet with the given ID is registered.
self
struct Wallets.Data
walletID
bytes32
Wallet's ID
[0]
bool
True if a wallet is registered, false otherwise
Returns Keccak256 hash of the wallet signing group members identifiers array. Group members do not include operators selected by the sortition pool that misbehaved during DKG. Reverts if wallet with the given ID is not registered.
self
struct Wallets.Data
walletID
bytes32
ID of the wallet
[0]
bytes32
Wallet signing group members hash
Gets public key of a wallet with the given wallet ID. The public key is returned as X and Y coordinates. Reverts if wallet with the given ID is not registered.
self
struct Wallets.Data
walletID
bytes32
ID of the wallet
x
bytes32
Public key X coordinate
y
bytes32
Public key Y coordinate
Gets public key of a wallet with the given wallet ID. The public key is returned in an uncompressed format as a 64-byte concatenation of X and Y coordinates. Reverts if wallet with the given ID is not registered.
self
struct Wallets.Data
walletID
bytes32
ID of the wallet
[0]
bytes
Uncompressed public key of the wallet