/** @type {API.MulticodecCode<0x1309, 'bls12-381-private-key'>} */ export const code: API.MulticodecCode<0x1309, 'bls12-381-private-key'>; export const name: "BLS12-381"; export const PREFIX: Uint8Array; export const SIZE: 32; export const signatureCode: API.MulticodecCode<53483, "BLS12381G2">; export const signatureAlgorithm: "BLS12381G2"; export function generate(): Promise; export function from({ id, keys }: API.SignerArchive): API.BLSSigner; export function decode(bytes: Uint8Array): API.BLSSigner; export function encode(signer: API.BLSSigner): API.ByteView; export function format(signer: API.BLSSigner, encoder?: API.MultibaseEncoder | undefined): import("multiformats").Multibase; export function parse(principal: string, decoder?: API.MultibaseDecoder | undefined): API.BLSSigner; export function fromFilecoinWallet(archive: string): API.BLSSigner; import * as API from './type.js'; /** * @implements {API.BLSSigner} */ declare class BLSSigner implements API.BLSSigner { /** * * @param {Uint8Array} bytes */ constructor(bytes: Uint8Array); bytes: Uint8Array; /** * Raw public key without multiformat code. */ secret: Uint8Array; /** @type {API.BLSVerifier|undefined} */ _verifier: API.BLSVerifier | undefined; /** * @type {typeof code} */ get code(): API.MulticodecCode<4873, "bls12-381-private-key">; /** * @type {API.BLSSigner} */ get signer(): API.BLSSigner; /** * @type {API.BLSVerifier} */ get verifier(): API.BLSVerifier; /** * DID of this principal in `did:key` format. */ did(): `did:key:${string}`; toDIDKey(): `did:key:${string}`; /** * @template {API.DID} ID * @param {ID} id * @returns {API.Signer} */ withDID(id: ID): API.Signer; /** * @template T * @param {API.ByteView} payload * @returns {Promise>} */ sign(payload: API.ByteView): Promise>; /** * @template T * @param {API.ByteView} payload * @param {API.Signature} signature */ verify(payload: API.ByteView, signature: API.Signature): API.Crypto.Await; /** @type {typeof signatureAlgorithm} */ get signatureAlgorithm(): "BLS12381G2"; /** @type {typeof Signature.BLS12381G2} */ get signatureCode(): 53483; encode(): Uint8Array; toArchive(): { id: `did:key:${string}`; keys: { [x: string]: Uint8Array; }; }; toFilecoinWallet(): string; } export {}; //# sourceMappingURL=signer.d.ts.map