Skip to content

Commit

Permalink
release(4.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunningham committed Aug 17, 2020
1 parent 9dcf127 commit 64d4bb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions js/identity/didDocument/sections/publicKeySection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export declare class PublicKeySection {
type: string;
publicKeyHex: string;
static fromEcdsa(publicKey: Buffer, id: string, did: string): PublicKeySection;
static fromX25519(publicKey: Buffer, id: string, did: string): PublicKeySection;
toJSON(): IPublicKeySectionAttrs;
fromJSON(json: IPublicKeySectionAttrs): PublicKeySection;
}
6 changes: 3 additions & 3 deletions js/identityWallet/identityWallet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { JSONWebToken } from '../interactionTokens/JSONWebToken';
import { PaymentRequest } from '../interactionTokens/paymentRequest';
import { Authentication } from '../interactionTokens/authentication';
import { CredentialRequest } from '../interactionTokens/credentialRequest';
import { KeyTypes, IKeyDerivationArgs } from '../vaultedKeyProvider/types';
import { KeyTypes } from '../vaultedKeyProvider/types';
import { IKeyMetadata, ISignedCredCreationArgs } from '../credentials/signedCredential/types';
import { ITransactionEncodable } from '../contracts/types';
import { IRegistry } from '../registries/types';
Expand Down Expand Up @@ -49,7 +49,7 @@ export declare class IdentityWallet {
validateJWT<T, R>(receivedJWT: JSONWebToken<T>, sentJWT?: JSONWebToken<R>, customRegistry?: IRegistry): Promise<void>;
asymEncrypt: (data: Buffer, publicKey: Buffer) => Promise<string>;
asymEncryptToDidKey: (data: Buffer, keyRef: string, customRegistry?: IRegistry) => Promise<string>;
asymDecrypt: (data: string, decryptionKeyArgs: IKeyDerivationArgs) => Promise<Buffer>;
asymDecrypt: (data: string, pass: string) => Promise<Buffer>;
private sendTransaction;
transactions: {
sendTransaction: (request: ITransactionEncodable, pass: string) => Promise<string>;
Expand All @@ -68,7 +68,7 @@ export declare class IdentityWallet {
auth: ({ expires, aud, ...message }: WithExtraOptions<ExclusivePartial<IAuthenticationAttrs, "callbackURL">>, pass: string) => Promise<JSONWebToken<any>>;
offer: ({ expires, aud, ...message }: WithExtraOptions<CredentialOfferRequestAttrs>, pass: string) => Promise<JSONWebToken<any>>;
share: ({ expires, aud, ...message }: WithExtraOptions<ICredentialRequestAttrs>, pass: string) => Promise<JSONWebToken<any>>;
payment: ({ expires, aud, ...message }: WithExtraOptions<PaymentRequestCreationArgs>, pass: string) => Promise<JSONWebToken<any>>;
payment: (args: WithExtraOptions<PaymentRequestCreationArgs>, pass: string) => Promise<JSONWebToken<any>>;
};
response: {
auth: ({ expires, aud, ...message }: WithExtraOptions<ExclusivePartial<IAuthenticationAttrs, "callbackURL">>, pass: string, recieved?: JSONWebToken<Authentication>) => Promise<JSONWebToken<any>>;
Expand Down
8 changes: 5 additions & 3 deletions js/vaultedKeyProvider/softwareProvider.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="node" />
import { IDigestable } from '../linkedDataSignature/types';
import { IKeyDerivationArgs, IVaultedKeyProvider } from './types';
import { IKeyDerivationArgs, IVaultedKeyProvider, SchemeTypes } from './types';
export interface EncryptedData {
keys: EncryptedKey[];
data: string;
Expand All @@ -16,18 +16,20 @@ export declare class SoftwareKeyProvider implements IVaultedKeyProvider {
readonly encryptedSeed: string;
static fromSeed(seed: Buffer, encryptionPass: string): SoftwareKeyProvider;
static recoverKeyPair(mnemonic: string, encryptionPass: string): SoftwareKeyProvider;
getPublicKey(derivationArgs: IKeyDerivationArgs): Buffer;
getPublicKey(derivationArgs: IKeyDerivationArgs, scheme?: SchemeTypes): Buffer;
static getRandom(nr: number): Buffer;
sign(derivationArgs: IKeyDerivationArgs, digest: Buffer): Buffer;
static verify(digest: Buffer, publicKey: Buffer, signature: Buffer): boolean;
getPrivateKey(derivationArgs: IKeyDerivationArgs): Buffer;
getPrivateKey(derivationArgs: IKeyDerivationArgs, scheme?: SchemeTypes): Buffer;
getMnemonic(encryptionPass: string, did?: string): string;
signDigestable(derivationArgs: IKeyDerivationArgs, toSign: IDigestable): Promise<Buffer>;
static verifyDigestable(publicKey: Buffer, toVerify: IDigestable): Promise<boolean>;
private static encrypt;
private static decrypt;
asymEncrypt(data: Buffer, pubKey: Buffer): Promise<string>;
asymDecrypt(data: string, derivationArgs: IKeyDerivationArgs): Promise<Buffer>;
sealBox(data: Buffer, target: Buffer): string;
unsealBox(sealedBox: string, derivationArgs: IKeyDerivationArgs): Buffer;
encryptHybrid(data: object, derivationArgs: IKeyDerivationArgs): Promise<EncryptedData>;
decryptHybrid(encryptedData: EncryptedData, derivationArg: IKeyDerivationArgs): Promise<object>;
private stringifyEncryptedData;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jolocom-lib",
"version": "4.1.0",
"version": "4.4.0",
"description": "Unified library for interacting with the Jolocom identity solution",
"main": "js/index.js",
"files": [
Expand Down

0 comments on commit 64d4bb2

Please sign in to comment.