@ucanto/principal
Version:
ucanto principal
16 lines • 708 B
TypeScript
export function decode(key: API.ByteView<RSAPublicKey>, byteOffset?: number): RSAPublicKey;
export function encode({ n, e }: RSAPublicKey): API.ByteView<RSAPublicKey>;
export function toSPKI(key: RSAPublicKey): API.ByteView<SPKI.SubjectPublicKeyInfo>;
export function fromSPKI(info: API.ByteView<SPKI.SubjectPublicKeyInfo>): RSAPublicKey;
export function toJWK({ n, e }: RSAPublicKey): JsonWebKey;
export function fromJWK({ n, e }: JsonWebKey): RSAPublicKey;
/**
* RSA public key represenatation
*/
export type RSAPublicKey = {
n: API.ByteView<number>;
e: API.ByteView<number>;
};
import * as API from '@ucanto/interface';
import * as SPKI from './spki.js';
//# sourceMappingURL=public-key.d.ts.map