@concordium/common-sdk
Advanced tools
Comparing version
import { AccountAddress } from './types/accountAddress'; | ||
import { ReduceStakePendingChange, RemovalPendingChange, StakePendingChange, StakePendingChangeV1, AccountInfo, AccountInfoBaker, AccountInfoBakerV0, AccountInfoBakerV1, AccountInfoDelegator, StakePendingChangeV0, BakerKeysWithProofs } from './types'; | ||
import { ReduceStakePendingChange, RemovalPendingChange, StakePendingChange, StakePendingChangeV1, AccountInfo, AccountInfoBaker, AccountInfoBakerV0, AccountInfoBakerV1, AccountInfoDelegator, StakePendingChangeV0, GenerateBakerKeysOutput } from './types'; | ||
export declare const isDelegatorAccount: (ai: AccountInfo) => ai is AccountInfoDelegator; | ||
@@ -14,4 +14,4 @@ export declare const isBakerAccount: (ai: AccountInfo) => ai is AccountInfoBaker; | ||
* @param account the address of the account that the keys should be added to. | ||
* @returns baker keys and their associated proofs | ||
* @returns an object containing the public baker keys, their associated proofs and their associated private keys. | ||
*/ | ||
export declare function generateBakerKeys(account: AccountAddress): BakerKeysWithProofs; | ||
export declare function generateBakerKeys(account: AccountAddress): GenerateBakerKeysOutput; |
@@ -47,3 +47,3 @@ "use strict"; | ||
* @param account the address of the account that the keys should be added to. | ||
* @returns baker keys and their associated proofs | ||
* @returns an object containing the public baker keys, their associated proofs and their associated private keys. | ||
*/ | ||
@@ -50,0 +50,0 @@ function generateBakerKeys(account) { |
@@ -957,6 +957,13 @@ import { AccountAddress } from './types/accountAddress'; | ||
} | ||
export interface BakerKeysWithProofs { | ||
export interface PublicBakerKeys { | ||
signatureVerifyKey: HexString; | ||
electionVerifyKey: HexString; | ||
aggregationVerifyKey: HexString; | ||
} | ||
export interface PrivateBakerKeys { | ||
aggregationSignKey: HexString; | ||
signatureSignKey: HexString; | ||
electionPrivateKey: HexString; | ||
} | ||
export interface BakerKeyProofs { | ||
proofAggregation: HexString; | ||
@@ -966,2 +973,4 @@ proofSig: HexString; | ||
} | ||
export declare type BakerKeysWithProofs = PublicBakerKeys & BakerKeyProofs; | ||
export declare type GenerateBakerKeysOutput = PublicBakerKeys & PrivateBakerKeys & BakerKeyProofs; | ||
export interface ConfigureBakerPayload { | ||
@@ -968,0 +977,0 @@ stake?: CcdAmount; |
{ | ||
"name": "@concordium/common-sdk", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"license": "Apache-2.0", | ||
@@ -54,3 +54,3 @@ "engines": { | ||
"dependencies": { | ||
"@concordium/rust-bindings": "0.11.0", | ||
"@concordium/rust-bindings": "0.11.1", | ||
"@grpc/grpc-js": "^1.3.4", | ||
@@ -57,0 +57,0 @@ "@noble/ed25519": "^1.7.1", |
1151456
-1.06%90
-3.23%26178
-0.11%+ Added
- Removed