New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@concordium/common-sdk

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@concordium/common-sdk - npm Package Compare versions

Comparing version

to
6.4.2

6

lib/accountHelpers.d.ts
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",