function extractCryptoMaterial(idKey) {
    if (!isValidIdentityKey(idKey)) {
        throw new Error(`Invalid identity key ${idKey}.`);
    }
    return Buffer.from(base58.decode(idKey).slice(5, 37));
}
/**
 * Extract the ed25519 cryptographic material encapsulated in the identity key.
 * @memberof app
 * @param {string} idKey - Public or secret identity key.
 * @returns {Buffer} - Either the ed25519 32-byte public key or the 32-byte secret seed.
 */
Extract the ed25519 cryptographic material encapsulated in the identity key.
@memberof app
@param {string} idKey - Public or secret identity key.
@returns {Buffer} - Either the ed25519 32-byte public key or the 32-byte secret seed.
Extract the ed25519 cryptographic material encapsulated in the identity key . @memberof app @param { string } idKey - Public or secret identity key . @returns { Buffer } - Either the ed25519 32 - byte public key or the 32 - byte secret seed .
function extractCryptoMaterial(idKey) {
    if (!isValidIdentityKey(idKey)) {
        throw new Error(`Invalid identity key ${idKey}.`);
    }
    return Buffer.from(base58.decode(idKey).slice(5, 37));
}
function extractCryptoMaterial ( idKey ) { if ( ! isValidIdentityKey ( idKey ) ) { throw new Error ( ` ${ idKey } ` ) ; } return Buffer . from ( base58 . decode ( idKey ) . slice ( 5 , 37 ) ) ; }
Extract the ed25519 cryptographic material encapsulated in the identity key.
Extract the ed25519 cryptographic material encapsulated in the identity key .