Skip to content

Commit ff59a1a

Browse files
committed
test: consume NIP-46 relay URL rejection vectors
1 parent de3973c commit ff59a1a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "nip46-connection-uri-relay-credentials",
3+
"format": "pre-signing-invalid-vector-v0",
4+
"category": "nip46-connection-uri",
5+
"expected_error": "relay must be a wss URL without credentials or fragment",
6+
"uri": "nostrconnect://cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc?relay=wss%3A%2F%2Fuser%3Apass%40relay.example.com&secret=client-secret"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "nip46-connection-uri-relay-fragment",
3+
"format": "pre-signing-invalid-vector-v0",
4+
"category": "nip46-connection-uri",
5+
"expected_error": "relay must be a wss URL without credentials or fragment",
6+
"uri": "nostrconnect://cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc?relay=wss%3A%2F%2Frelay.example.com%2F%23section&secret=client-secret"
7+
}

0 commit comments

Comments
 (0)