{"version":3,"file":"signer.cjs","sources":["../../../../../../../../../src/mods/tor/binary/certs/ed25519/extensions/signer.ts"],"sourcesContent":["import { Uint8Array } from \"@hazae41/bytes\";\nimport { Cursor } from \"@hazae41/cursor\";\n\nexport class SignedWithEd25519Key {\n  readonly #class = SignedWithEd25519Key\n\n  static readonly type = 4\n\n  constructor(\n    readonly key: Uint8Array<32>\n  ) { }\n\n  get type(): 4 {\n    return this.#class.type\n  }\n\n  static readOrThrow(cursor: Cursor) {\n    return new SignedWithEd25519Key(cursor.readAndCopyOrThrow(32))\n  }\n\n}"],"names":[],"mappings":";;;MAGa,oBAAoB,CAAA;AAMpB,IAAA,GAAA,CAAA;IALF,MAAM,GAAG,EAAoB,CAAA;AAEtC,IAAA,OAAgB,IAAI,GAAG,CAAC,CAAA;AAExB,IAAA,WAAA,CACW,GAAmB,EAAA;QAAnB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAgB;KACzB;AAEL,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAA;KACxB;IAED,OAAO,WAAW,CAAC,MAAc,EAAA;QAC/B,OAAO,IAAI,EAAoB,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/D;;;;;;"}