signature.d.ts 573 B

1234567891011121314151617181920
  1. import { JSONObject } from './utils';
  2. export interface SignatureOptions {
  3. keyID: string;
  4. sig: string;
  5. }
  6. /**
  7. * A container class containing information about a signature.
  8. *
  9. * Contains a signature and the keyid uniquely identifying the key used
  10. * to generate the signature.
  11. *
  12. * Provide a `fromJSON` method to create a Signature from a JSON object.
  13. */
  14. export declare class Signature {
  15. readonly keyID: string;
  16. readonly sig: string;
  17. constructor(options: SignatureOptions);
  18. toJSON(): JSONObject;
  19. static fromJSON(data: JSONObject): Signature;
  20. }