antelope-webauthn
Version:
A WebAuthn.io crypto utility for generating signatures, creating public keys, and verifying them, designed for Antelope-based blockchains such as Vaulta, WAX, and other related platforms. This package provides convenient tools to handle key pair generatio
29 lines (28 loc) • 657 B
TypeScript
export type createWebAuthnKeyArgs = {
/**
* the ID for the PublicKeyCredentialUserEntity.
*/
id: Uint8Array;
/**
* Key name
*/
name: string;
/**
* Users display name
*/
displayName: string;
/**
* Website URL where the signing will be done.
*/
relayingParty: string;
/**
* Challenge to be signed.
*/
challenge: Uint8Array;
};
export type device_key = {
id: Uint8Array;
public_key: string;
credential_id: string;
};
export default function createWebAuthnKey({ id, name, displayName, relayingParty, challenge, }: createWebAuthnKeyArgs): Promise<device_key>;