mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
29 lines
541 B
TypeScript
29 lines
541 B
TypeScript
/**
|
|
* Public key data.
|
|
*/
|
|
export interface PublicKey {
|
|
/**
|
|
* ID of the key.
|
|
* @type {string}
|
|
* @example "did:op:123456789abcdefghi#keys-1"
|
|
*/
|
|
id: string
|
|
|
|
/**
|
|
* Type of key.
|
|
* @type {string}
|
|
*/
|
|
type: "Ed25519VerificationKey2018" | "RsaVerificationKey2018" | "EdDsaSAPublicKeySecp256k1"
|
|
|
|
/**
|
|
* Key owner.
|
|
* @type {string}
|
|
* @example "did:op:123456789abcdefghi"
|
|
*/
|
|
owner: string
|
|
|
|
publicKeyPem?: string
|
|
publicKeyBase58?: string
|
|
publicKeyHex?: string
|
|
}
|