Files
2025-02-28 14:18:02 -08:00

14 lines
421 B
TypeScript

import {describe, expect, it} from "vitest"
import {Nip01Signer} from "../src/signers/nip01"
import {testSigner} from "./common"
describe("Nip01Signer", () => {
testSigner("Nip01Signer", () => Nip01Signer.fromSecret("ee".repeat(32)))
// Additional NIP-01 specific tests
it("should create ephemeral signer", () => {
const signer = Nip01Signer.ephemeral()
expect(signer).toBeInstanceOf(Nip01Signer)
})
})