iso-did
Version:
Isomorphic did core and did key tooling
40 lines • 1.18 kB
TypeScript
export const KEY_TYPE_ALG: {
readonly Ed25519: "EdDSA";
readonly 'P-256': "ES256";
readonly 'P-384': "ES384";
readonly 'P-521': "ES512";
readonly secp256k1: "ES256K";
readonly RSA: "RS256";
};
export namespace ALG_KEY_TYPE {
let EdDSA: "Ed25519";
let ES256: "P-256";
let ES384: "P-384";
let ES512: "P-521";
let ES256K: "secp256k1";
let RS256: "RSA";
}
/**
* @typedef {keyof ALG_KEY_TYPE} SignatureAlgorithm
* @typedef {keyof KEY_TYPE_ALG} KeyType
*/
export const KEY_TYPE_CODE: {
readonly Ed25519: 237;
readonly RSA: 4613;
readonly 'P-256': 4608;
readonly 'P-384': 4609;
readonly 'P-521': 4610;
readonly secp256k1: 231;
};
export const CODE_KEY_TYPE: {
readonly 237: "Ed25519";
readonly 4613: "RSA";
readonly 4608: "P-256";
readonly 4609: "P-384";
readonly 4610: "P-521";
readonly 231: "secp256k1";
};
export type SignatureAlgorithm = "EdDSA" | "ES256" | "ES384" | "ES512" | "ES256K" | "RS256";
export type KeyType = "RSA" | "Ed25519" | "P-256" | "P-384" | "P-521" | "secp256k1";
export type PublicKeyCode = 237 | 4613 | 4608 | 4609 | 4610 | 231;
//# sourceMappingURL=common.d.ts.map