Home Reference Source Test
public class | source

PeerKeyStore

Static Method Summary

Static Public Methods
public static
public static

async getPersistent(): Promise<PeerKeyStore>

Constructor Summary

Public Constructor
public

constructor(store: IObjectStore)

Method Summary

Public Methods
public

get(key: string): Promise<KeyPair>

public

put(key: string, keyPair: KeyPair): Promise

Static Public Methods

public static createVolatile(): PeerKeyStore source

Return:

PeerKeyStore

public static async getPersistent(): Promise<PeerKeyStore> source

Return:

Promise<PeerKeyStore>

Public Constructors

public constructor(store: IObjectStore) source

Params:

NameTypeAttributeDescription
store IObjectStore

Public Methods

public get(key: string): Promise<KeyPair> source

Params:

NameTypeAttributeDescription
key string

Return:

Promise<KeyPair>

public put(key: string, keyPair: KeyPair): Promise source

Params:

NameTypeAttributeDescription
key string
keyPair KeyPair

Return:

Promise