import { default as VIP030026BaseCredential } from './VIP030026BaseCredential'; import { IVIP030026PublicKeyCredential } from '../types'; /** * The public key credential adheres to the VIP-03-0026 standard that allows clients infer a credential and use it to * verify the integrity of a provider response. */ export default class VIP030026PublicKeyCredential extends VIP030026BaseCredential { /** * public static methods */ /** * Creates a credential from raw bytes. * @param {Uint8Array} credential - A VIP-03-0026 credential as raw bytes. * @returns {VIP030026PublicKeyCredential} An initialized VIP030026PublicKeyCredential. * @throws {VIP030026InvalidCredentialLengthError} If the credential length is invalid. * @static * @public */ static fromBytes(credential: Uint8Array): VIP030026PublicKeyCredential; /** * Creates a credential from a JSON. * @param {IVIP030026PublicKeyCredential} credential - A JSON containing the values of a credential. * @returns {VIP030026PublicKeyCredential} An initialized VIP030026PublicKeyCredential. * @throws {VIP030026UnsupportedAlgorithmIDError} If the algorithm is unsupported. * @throws {VIP030026InvalidCredentialLengthError} If the credential length is invalid. * @static * @public */ static fromJSON(credential: IVIP030026PublicKeyCredential): VIP030026PublicKeyCredential; /** * protected methods */ /** * Gets the raw public key bytes from the credential. * @returns {Uint8Array} The raw public key bytes. * @protected */ protected _publicKeyBytes(): Uint8Array; /** * public methods */ /** * Gets the credential as a JSON. * @returns {IVIP030026PublicKeyCredential} The credential formatted as a JSON. * @throws {VIP030026UnsupportedAlgorithmIDError} If the algorithm is unsupported. * @public */ toJSON(): IVIP030026PublicKeyCredential; } //# sourceMappingURL=VIP030026PublicKeyCredential.d.ts.map