Socket
Socket
Sign inDemoInstall

@dfinity/identity

Package Overview
Dependencies
Maintainers
11
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/identity - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

7

lib/cjs/identity/delegation.d.ts

@@ -100,2 +100,9 @@ import { BinaryBlob, DerEncodedBlob, HttpAgentRequest, Principal, PublicKey, SignIdentity } from '@dfinity/agent';

static fromJSON(json: string | IJsonnableDelegationChain): DelegationChain;
/**
* Creates a DelegationChain object from a list of delegations and a DER-encoded public key.
*
* @param delegations The list of delegations.
* @param publicKey The DER-encoded public key of the key-pair signing the first delegation.
*/
static fromDelegations(delegations: SignedDelegation[], publicKey: DerEncodedBlob): DelegationChain;
protected constructor(delegations: SignedDelegation[], publicKey: DerEncodedBlob);

@@ -102,0 +109,0 @@ toJSON(): IJsonnableDelegationChain;

@@ -170,2 +170,11 @@ "use strict";

}
/**
* Creates a DelegationChain object from a list of delegations and a DER-encoded public key.
*
* @param delegations The list of delegations.
* @param publicKey The DER-encoded public key of the key-pair signing the first delegation.
*/
static fromDelegations(delegations, publicKey) {
return new this(delegations, publicKey);
}
toJSON() {

@@ -172,0 +181,0 @@ return {

2

lib/cjs/index.d.ts
export { Ed25519KeyIdentity, Ed25519PublicKey } from './identity/ed25519';
export { Bip39Ed25519KeyIdentity } from './identity/bip39';
export { DelegationIdentity, DelegationChain } from './identity/delegation';
export { Delegation, DelegationIdentity, DelegationChain, SignedDelegation } from './identity/delegation';
export { WebAuthnIdentity } from './identity/webauthn';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebAuthnIdentity = exports.DelegationChain = exports.DelegationIdentity = exports.Bip39Ed25519KeyIdentity = exports.Ed25519PublicKey = exports.Ed25519KeyIdentity = void 0;
exports.WebAuthnIdentity = exports.DelegationChain = exports.DelegationIdentity = exports.Delegation = exports.Bip39Ed25519KeyIdentity = exports.Ed25519PublicKey = exports.Ed25519KeyIdentity = void 0;
var ed25519_1 = require("./identity/ed25519");

@@ -10,2 +10,3 @@ Object.defineProperty(exports, "Ed25519KeyIdentity", { enumerable: true, get: function () { return ed25519_1.Ed25519KeyIdentity; } });

var delegation_1 = require("./identity/delegation");
Object.defineProperty(exports, "Delegation", { enumerable: true, get: function () { return delegation_1.Delegation; } });
Object.defineProperty(exports, "DelegationIdentity", { enumerable: true, get: function () { return delegation_1.DelegationIdentity; } });

@@ -12,0 +13,0 @@ Object.defineProperty(exports, "DelegationChain", { enumerable: true, get: function () { return delegation_1.DelegationChain; } });

@@ -100,2 +100,9 @@ import { BinaryBlob, DerEncodedBlob, HttpAgentRequest, Principal, PublicKey, SignIdentity } from '@dfinity/agent';

static fromJSON(json: string | IJsonnableDelegationChain): DelegationChain;
/**
* Creates a DelegationChain object from a list of delegations and a DER-encoded public key.
*
* @param delegations The list of delegations.
* @param publicKey The DER-encoded public key of the key-pair signing the first delegation.
*/
static fromDelegations(delegations: SignedDelegation[], publicKey: DerEncodedBlob): DelegationChain;
protected constructor(delegations: SignedDelegation[], publicKey: DerEncodedBlob);

@@ -102,0 +109,0 @@ toJSON(): IJsonnableDelegationChain;

@@ -147,2 +147,11 @@ var __rest = (this && this.__rest) || function (s, e) {

}
/**
* Creates a DelegationChain object from a list of delegations and a DER-encoded public key.
*
* @param delegations The list of delegations.
* @param publicKey The DER-encoded public key of the key-pair signing the first delegation.
*/
static fromDelegations(delegations, publicKey) {
return new this(delegations, publicKey);
}
toJSON() {

@@ -149,0 +158,0 @@ return {

export { Ed25519KeyIdentity, Ed25519PublicKey } from './identity/ed25519';
export { Bip39Ed25519KeyIdentity } from './identity/bip39';
export { DelegationIdentity, DelegationChain } from './identity/delegation';
export { Delegation, DelegationIdentity, DelegationChain, SignedDelegation } from './identity/delegation';
export { WebAuthnIdentity } from './identity/webauthn';
export { Ed25519KeyIdentity, Ed25519PublicKey } from './identity/ed25519';
export { Bip39Ed25519KeyIdentity } from './identity/bip39';
export { DelegationIdentity, DelegationChain } from './identity/delegation';
export { Delegation, DelegationIdentity, DelegationChain } from './identity/delegation';
export { WebAuthnIdentity } from './identity/webauthn';
//# sourceMappingURL=index.js.map
{
"name": "@dfinity/identity",
"version": "0.8.1",
"version": "0.8.2",
"author": "DFINITY Stiftung <sdk@dfinity.org>",

@@ -42,3 +42,3 @@ "license": "Apache-2.0",

"dependencies": {
"@dfinity/agent": "^0.8.1",
"@dfinity/agent": "^0.8.2",
"bip39": "^3.0.2",

@@ -45,0 +45,0 @@ "borc": "^2.1.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc