SignKeyPair

SignKeyPair

Signing keypair

Constructor

new SignKeyPair()

Source:

Members

pubSignKey

get the public sign key instance of this key pair

Source:
Example
// Assumes SAFEApp interface has been obtained
const asyncFn = async () => {
  try {
    const encKeyPair = await app.crypto.generateEncKeyPair();
    const pubSignKey = signKeyPair.pubSignKey;
  } catch (err) {
    throw err;
  }
};

secSignKey

get the secrect sign key instance of this key pair

Source:
Example
// Assumes SAFEApp interface has been obtained
const asyncFn = async () => {
  try {
    const encKeyPair = await app.crypto.generateEncKeyPair();
    const secSignKey = await signKeyPair.secSignKey;
  } catch (err) {
    throw err;
  }
};