-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
3481 lines (3227 loc) · 161 KB
/
Copy pathindex.html
File metadata and controls
3481 lines (3227 loc) · 161 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>NIP-46 Lab — Remote Signer Testbench</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0d0c;
--bg-2: #11151a;
--bg-3: #161b22;
--line: #1f2630;
--line-2: #2a323e;
--ink: #d6e0e6;
--ink-dim: #8a96a3;
--ink-faint: #5a6675;
--accent: #c2f23a; /* electric lime — cipher / live */
--accent-2: #ff5b7e; /* hot pink — error */
--accent-3: #6cb6ff; /* cool blue — request */
--accent-4: #ffb86b; /* amber — auth challenge */
--accent-5: #9d8cff; /* violet — response */
--warn: #ffd166;
--mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
--serif: 'Fraunces', ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
background: var(--bg);
color: var(--ink);
font-family: var(--mono);
font-size: 13px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
background-image:
radial-gradient(ellipse at 80% -10%, rgba(194,242,58,0.06), transparent 50%),
radial-gradient(ellipse at 0% 110%, rgba(157,140,255,0.05), transparent 50%),
linear-gradient(var(--bg) 0 0);
background-attachment: fixed;
}
/* ---------- top chrome ---------- */
header {
border-bottom: 1px solid var(--line);
padding: 18px 28px 14px;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 28px;
align-items: end;
backdrop-filter: blur(8px);
background: rgba(10,13,12,0.65);
position: sticky; top: 0; z-index: 10;
}
.brand {
font-family: var(--serif);
font-weight: 800;
font-size: 28px;
letter-spacing: -0.02em;
line-height: 1;
}
.brand em {
color: var(--accent);
font-style: italic;
font-weight: 600;
}
.brand small {
display: block;
font-family: var(--mono);
font-weight: 400;
font-size: 10px;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink-faint);
margin-top: 6px;
}
.status {
display: flex; gap: 18px; justify-content: flex-end; align-items: center;
font-size: 11px;
color: var(--ink-dim);
}
.status .dot {
display: inline-block; width: 7px; height: 7px; border-radius: 50%;
background: var(--ink-faint); margin-right: 6px; vertical-align: 1px;
transition: background .2s;
}
.status .dot.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.status .dot.warn { background: var(--accent-4); box-shadow: 0 0 10px var(--accent-4); }
.status .dot.err { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.status code { color: var(--ink); }
.net-status { font-size: 10px; color: var(--ink-faint); display: inline-flex; gap: 8px; }
.net-status .on { color: var(--accent); }
.net-status .off { color: var(--accent-2); }
/* ---------- layout ---------- */
main {
display: grid;
grid-template-columns: 420px 1fr 460px;
gap: 0;
height: calc(100vh - 88px);
}
.col {
overflow-y: auto;
border-right: 1px solid var(--line);
}
.col:last-child { border-right: none; }
.col-pad { padding: 22px 24px; }
h2 {
font-family: var(--serif);
font-weight: 600;
font-size: 18px;
letter-spacing: -0.01em;
margin: 0 0 4px;
}
.col h2:not(:first-child) { margin-top: 28px; }
.sub {
font-size: 11px;
color: var(--ink-faint);
text-transform: uppercase;
letter-spacing: 0.14em;
margin-bottom: 14px;
}
/* ---------- forms ---------- */
label {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--ink-dim);
margin: 12px 0 5px;
}
input, textarea, select {
width: 100%;
background: var(--bg-2);
color: var(--ink);
border: 1px solid var(--line);
border-radius: 4px;
padding: 9px 11px;
font-family: var(--mono);
font-size: 12px;
transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--accent);
background: #0e1310;
}
textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
button {
background: var(--accent);
color: #0a0d0c;
border: none;
border-radius: 4px;
font-family: var(--mono);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 9px 14px;
cursor: pointer;
transition: filter .15s, transform .05s;
}
button:hover:not(:disabled) { filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.35; cursor: not-allowed; }
button.ghost {
background: transparent;
color: var(--ink);
border: 1px solid var(--line-2);
}
button.ghost:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
filter: none;
}
button.danger { background: var(--accent-2); color: #0a0d0c; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* ---------- tabs ---------- */
.tabs {
display: flex; gap: 0;
border-bottom: 1px solid var(--line);
margin-bottom: 18px;
}
.tab {
padding: 10px 14px;
cursor: pointer;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--ink-dim);
border-bottom: 2px solid transparent;
margin-bottom: -1px;
transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.panel { display: none; }
.panel.active { display: block; }
/* ---------- card / session ---------- */
.card {
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: 6px;
padding: 14px 16px;
margin: 10px 0;
}
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 11px; }
.kv dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; padding-top: 1px; }
.kv dd {
margin: 0; word-break: break-all;
font-family: var(--mono);
color: var(--ink);
}
.kv dd.copyable { cursor: pointer; transition: color .15s; }
.kv dd.copyable:hover { color: var(--accent); }
/* ---------- methods ---------- */
.method {
border: 1px solid var(--line);
border-radius: 6px;
margin-bottom: 10px;
background: var(--bg-2);
overflow: hidden;
}
.method-head {
padding: 11px 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
transition: background .15s;
}
.method-head:hover { background: var(--bg-3); }
.method-head .name {
font-weight: 500;
color: var(--accent);
font-size: 12px;
}
.method-head .name::before {
content: "▸ ";
color: var(--ink-faint);
transition: transform .2s;
display: inline-block;
}
.method.open .method-head .name::before { content: "▾ "; }
.method-head .desc {
font-size: 10px;
color: var(--ink-dim);
margin-left: 10px;
flex: 1;
text-align: right;
}
.method-body {
display: none;
padding: 8px 14px 14px;
border-top: 1px solid var(--line);
}
.method.open .method-body { display: block; }
/* ---------- log ---------- */
.log-controls {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 12px;
padding: 0 0 12px;
border-bottom: 1px solid var(--line);
}
.log-controls .legend { display: flex; gap: 12px; font-size: 10px; color: var(--ink-faint); align-items: center; flex: 1;}
.log-controls .legend span { display: inline-flex; align-items: center; gap: 5px; }
.log-controls .legend i {
width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.log-controls button {
padding: 5px 10px; font-size: 9px;
}
.log-entry {
border: 1px solid var(--line);
border-left-width: 3px;
border-radius: 4px;
padding: 9px 12px;
margin-bottom: 8px;
background: var(--bg-2);
font-size: 11px;
cursor: pointer;
transition: background .15s;
}
.log-entry:hover { background: var(--bg-3); }
.log-entry.req { border-left-color: var(--accent-3); }
.log-entry.res { border-left-color: var(--accent-5); }
.log-entry.auth { border-left-color: var(--accent-4); }
.log-entry.err { border-left-color: var(--accent-2); }
.log-entry.sys { border-left-color: var(--ink-faint); }
.log-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 10px;
margin-bottom: 3px;
}
.log-tag {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.14em;
padding: 1px 6px;
border-radius: 2px;
font-weight: 700;
}
.log-entry.req .log-tag { background: rgba(108,182,255,0.15); color: var(--accent-3); }
.log-entry.res .log-tag { background: rgba(157,140,255,0.15); color: var(--accent-5); }
.log-entry.auth .log-tag { background: rgba(255,184,107,0.15); color: var(--accent-4); }
.log-entry.err .log-tag { background: rgba(255,91,126,0.15); color: var(--accent-2); }
.log-entry.sys .log-tag { background: rgba(138,150,163,0.12); color: var(--ink-dim); }
.log-time { color: var(--ink-faint); font-size: 10px; }
.log-summary {
color: var(--ink);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.log-summary code { color: var(--accent); }
.log-detail {
display: none;
margin-top: 8px;
padding-top: 8px;
border-top: 1px dashed var(--line-2);
}
.log-entry.expanded .log-detail { display: block; }
.log-detail pre {
background: var(--bg);
border-radius: 3px;
padding: 8px 10px;
margin: 4px 0 8px;
overflow-x: auto;
font-size: 10px;
line-height: 1.5;
color: var(--ink-dim);
border: 1px solid var(--line);
max-height: 220px;
overflow-y: auto;
}
.log-detail .label-mini {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--ink-faint);
margin: 6px 0 2px;
}
/* ---------- relay manager ---------- */
.relay-list { margin: 8px 0 0; }
.relay-item {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-2);
border: 1px solid var(--line);
padding: 7px 12px;
border-radius: 4px;
margin-bottom: 5px;
font-size: 11px;
}
.relay-item .url { color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relay-item .state { font-size: 9px; padding: 1px 6px; border-radius: 2px; margin: 0 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.relay-item .state.connected { background: rgba(194,242,58,0.15); color: var(--accent); }
.relay-item .state.connecting { background: rgba(255,184,107,0.15); color: var(--accent-4); }
.relay-item .state.disconnected { background: rgba(255,91,126,0.15); color: var(--accent-2); }
.relay-item .x { color: var(--ink-faint); cursor: pointer; padding: 0 4px; }
.relay-item .x:hover { color: var(--accent-2); }
/* ---------- modal / auth ---------- */
.auth-banner {
margin: 10px 0;
padding: 14px;
background: linear-gradient(135deg, rgba(255,184,107,0.12), rgba(255,184,107,0.04));
border: 1px solid var(--accent-4);
border-radius: 6px;
font-size: 12px;
}
.auth-banner h3 {
margin: 0 0 6px;
color: var(--accent-4);
font-family: var(--serif);
font-size: 14px;
font-weight: 600;
}
.auth-banner a {
color: var(--accent);
text-decoration: underline;
word-break: break-all;
}
/* ---------- helpers ---------- */
.hint {
font-size: 11px;
color: var(--ink-faint);
line-height: 1.55;
margin: 6px 0 0;
}
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pill {
display: inline-block; font-size: 9px; padding: 2px 7px; border-radius: 10px;
background: var(--bg-3); color: var(--ink-dim);
text-transform: uppercase; letter-spacing: 0.08em;
border: 1px solid var(--line);
margin-right: 4px;
}
.empty { color: var(--ink-faint); font-style: italic; padding: 16px 0; text-align: center; font-size: 11px; }
.qr-wrap {
background: #fff; padding: 12px; border-radius: 6px; display: inline-block;
margin: 10px 0;
}
.qr-wrap canvas, .qr-wrap img { display: block; }
.copy-row {
display: flex; gap: 6px; align-items: stretch; margin-top: 6px;
}
.copy-row input { flex: 1; }
.copy-row button { padding: 0 12px; font-size: 10px; }
.toast {
position: fixed; bottom: 24px; right: 24px;
background: var(--ink); color: var(--bg);
padding: 10px 18px; border-radius: 4px;
font-weight: 600; font-size: 11px;
text-transform: uppercase; letter-spacing: 0.1em;
transform: translateY(80px); opacity: 0;
transition: transform .3s, opacity .3s;
z-index: 100;
box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.err { background: var(--accent-2); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
@media (max-width: 1100px) {
main { grid-template-columns: 1fr; height: auto; }
.col { border-right: none; border-bottom: 1px solid var(--line); }
.col:last-child { border-bottom: none; }
}
/* ---------- mobile ---------- */
@media (max-width: 760px) {
header {
grid-template-columns: 1fr;
gap: 12px;
padding: 14px 16px 12px;
align-items: stretch;
}
.brand { font-size: 24px; }
.mode-switch { justify-content: stretch; }
.mode-switch .mode-tab { flex: 1; text-align: center; padding: 9px 8px; }
.status {
flex-wrap: wrap;
justify-content: flex-start;
gap: 8px 16px;
}
.net-status { flex-basis: 100%; }
.col-pad { padding: 18px 16px; }
.row3 { grid-template-columns: 1fr 1fr; }
.test-row {
grid-template-columns: 1fr auto;
grid-template-areas: "name verdict" "info info";
gap: 6px 10px;
}
.test-row .name { grid-area: name; }
.test-row .verdict { grid-area: verdict; }
.test-row .info { grid-area: info; }
}
@media (max-width: 420px) {
.row, .row3 { grid-template-columns: 1fr; }
.col-pad { padding: 16px 13px; }
.brand { font-size: 21px; }
.qr-wrap { width: 100%; box-sizing: border-box; text-align: center; }
.qr-wrap canvas, .qr-wrap img { max-width: 100%; height: auto; margin: 0 auto; }
.toast { left: 16px; right: 16px; bottom: 16px; text-align: center; }
}
/* ---------- mode switcher (top header) ---------- */
.mode-switch {
display: flex; gap: 0;
justify-content: center;
align-items: center;
}
.mode-switch .mode-tab {
font-family: var(--mono);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.12em;
padding: 8px 16px;
cursor: pointer;
color: var(--ink-dim);
border: 1px solid var(--line);
border-right: none;
background: var(--bg-2);
transition: color .15s, background .15s;
}
.mode-switch .mode-tab:first-child { border-radius: 4px 0 0 4px; }
.mode-switch .mode-tab:last-child { border-right: 1px solid var(--line); border-radius: 0 4px 4px 0; }
.mode-switch .mode-tab:hover { color: var(--ink); }
.mode-switch .mode-tab.active {
color: #0a0d0c;
background: var(--accent);
border-color: var(--accent);
}
main.mode-view { display: none; }
main.mode-view.active { display: grid; }
/* ---------- bunker mode ---------- */
.approval-card {
border: 1px solid var(--accent-4);
background: linear-gradient(135deg, rgba(255,184,107,0.10), rgba(255,184,107,0.02));
border-radius: 6px;
padding: 12px 14px;
margin-bottom: 10px;
}
.approval-card .ah {
display: flex; justify-content: space-between; align-items: baseline;
margin-bottom: 6px;
}
.approval-card .ah .name {
color: var(--accent-4);
font-weight: 600;
font-size: 12px;
}
.approval-card .ah .from { color: var(--ink-faint); font-size: 10px; }
.approval-card pre {
background: var(--bg);
border: 1px solid var(--line);
border-radius: 3px;
padding: 6px 8px;
margin: 6px 0;
font-size: 10px;
color: var(--ink-dim);
max-height: 140px;
overflow: auto;
white-space: pre-wrap;
word-break: break-all;
}
.client-card {
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: 4px;
padding: 9px 12px;
margin-bottom: 6px;
font-size: 11px;
}
.client-card .ch {
display: flex; justify-content: space-between; align-items: baseline;
gap: 8px;
}
.client-card .pk { color: var(--accent); font-family: var(--mono); }
.client-card .meta { color: var(--ink-faint); font-size: 10px; }
.client-card .perms { color: var(--ink-dim); font-size: 10px; margin-top: 4px; word-break: break-all; }
/* ---------- relay tester ---------- */
.test-row {
display: grid;
grid-template-columns: 110px 1fr 80px;
gap: 10px;
align-items: center;
padding: 9px 12px;
border: 1px solid var(--line);
background: var(--bg-2);
border-radius: 4px;
margin-bottom: 6px;
font-size: 11px;
}
.test-row .name { font-weight: 500; color: var(--ink); }
.test-row .info { color: var(--ink-dim); font-size: 10px; word-break: break-word; }
.test-row .verdict {
text-align: center;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.1em;
padding: 2px 6px;
border-radius: 3px;
}
.test-row .verdict.pending { color: var(--ink-faint); background: var(--bg-3); }
.test-row .verdict.running { color: var(--accent-4); background: rgba(255,184,107,0.12); }
.test-row .verdict.pass { color: var(--accent); background: rgba(194,242,58,0.12); }
.test-row .verdict.fail { color: var(--accent-2); background: rgba(255,91,126,0.12); }
.nip11-box {
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: 4px;
padding: 10px 12px;
font-size: 11px;
}
.nip11-box pre {
background: var(--bg);
border: 1px solid var(--line);
border-radius: 3px;
padding: 8px;
margin: 6px 0 0;
font-size: 10px;
color: var(--ink-dim);
max-height: 280px;
overflow: auto;
}
</style>
</head>
<body>
<header>
<div class="brand">
nip<em>·46</em> lab
<small>remote signer testbench</small>
</div>
<div class="mode-switch">
<div class="mode-tab active" data-mode="client">client</div>
<div class="mode-tab" data-mode="bunker">bunker</div>
<div class="mode-tab" data-mode="relay">relay test</div>
</div>
<div class="status">
<span id="net-status" class="net-status"></span>
<span><span class="dot" id="conn-dot"></span><span id="conn-text">disconnected</span></span>
<span>local: <code id="local-pub">—</code></span>
<span>user: <code id="user-pub">—</code></span>
</div>
</header>
<main class="mode-view active" data-mode="client">
<!-- LEFT COLUMN: connection -->
<section class="col">
<div class="col-pad">
<h2>Connection</h2>
<div class="sub">Establish a session with a bunker</div>
<div class="tabs">
<div class="tab active" data-tab="bunker">bunker://</div>
<div class="tab" data-tab="nostrconnect">nostrconnect://</div>
<div class="tab" data-tab="session">session</div>
</div>
<!-- bunker:// flow (signer-initiated) -->
<div class="panel active" data-panel="bunker">
<p class="hint">Signer-initiated flow. Paste a <code>bunker://</code> URI from your remote signer (nsec.app, nsecBunker, Amber, etc.).</p>
<label>Bunker URI</label>
<textarea id="bunker-uri" placeholder="bunker://<remote-signer-pubkey>?relay=wss://...&secret=..."></textarea>
<label>Local secret key (hex / nsec) — leave blank to generate</label>
<input id="bunker-local-sk" placeholder="auto-generate" />
<label>Requested permissions (optional)</label>
<input id="bunker-perms" value="sign_event:1,sign_event:0,nip04_encrypt,nip04_decrypt,nip44_encrypt,nip44_decrypt,nip44v3_encrypt,nip44v3_decrypt" />
<label>Client metadata (optional · <a href="https://github.com/nostr-protocol/nips/pull/2381" target="_blank" rel="noopener">NIP-46 PR #2381</a>)</label>
<p class="hint" style="margin:2px 0 6px">Sent as a 4th JSON-stringified <code>connect</code> param so the signer can label this session. Unauthenticated — a display hint only.</p>
<div class="row">
<div>
<label>name</label>
<input id="bunker-meta-name" value="NIP-46 Lab" />
</div>
<div>
<label>url</label>
<input id="bunker-meta-url" value="https://nip46.lab" />
</div>
</div>
<label>image</label>
<input id="bunker-meta-image" placeholder="https://…/icon.png" />
<div class="btn-row">
<button id="btn-bunker-connect">connect</button>
<button class="ghost" id="btn-bunker-paste">paste</button>
</div>
</div>
<!-- nostrconnect:// flow (client-initiated) -->
<div class="panel" data-panel="nostrconnect">
<p class="hint">Client-initiated flow. Generate a <code>nostrconnect://</code> URI, then paste it into your signer to approve.</p>
<div class="row">
<div>
<label>App name</label>
<input id="nc-name" value="NIP-46 Lab" />
</div>
<div>
<label>App URL</label>
<input id="nc-url" value="https://nip46.lab" />
</div>
</div>
<label>Relays (one per line)</label>
<textarea id="nc-relays">wss://nos.lol</textarea>
<label>Requested permissions</label>
<input id="nc-perms" value="sign_event:1,sign_event:0,nip04_encrypt,nip04_decrypt,nip44_encrypt,nip44_decrypt,nip44v3_encrypt,nip44v3_decrypt,get_public_key" />
<div class="btn-row">
<button id="btn-nc-generate">generate URI</button>
<button class="ghost" id="btn-nc-cancel" disabled>cancel listening</button>
</div>
<div id="nc-output" style="display:none">
<label>Generated URI</label>
<div class="copy-row">
<input id="nc-uri-out" readonly />
<button class="ghost" id="btn-nc-copy">copy</button>
</div>
<div class="qr-wrap" id="nc-qr"></div>
<p class="hint" id="nc-status">Waiting for signer to connect…</p>
</div>
</div>
<!-- session info -->
<div class="panel" data-panel="session">
<div id="session-info">
<p class="empty">No active session.</p>
</div>
</div>
<h2>Reliability</h2>
<div class="sub">Auto-reconnect & health monitoring</div>
<div class="card" style="padding: 10px 12px;">
<div style="display:flex;align-items:center;gap:8px;margin-bottom:6px;">
<input type="checkbox" id="cb-reconnect" checked style="width:auto;margin:0">
<label for="cb-reconnect" style="margin:0;font-size:11px;text-transform:none;letter-spacing:0;color:var(--ink)">auto-reconnect dropped relays (exp backoff)</label>
</div>
<div style="display:flex;align-items:center;gap:8px;margin-bottom:6px;">
<input type="checkbox" id="cb-heartbeat" checked style="width:auto;margin:0">
<label for="cb-heartbeat" style="margin:0;font-size:11px;text-transform:none;letter-spacing:0;color:var(--ink)">heartbeat ping every 45s</label>
</div>
<p class="hint" style="margin: 6px 0 0">Logs network changes, page visibility, suspension, and bfcache restore. After a long suspension or network change, all relays are re-validated.</p>
</div>
<h2>Transport encryption</h2>
<div class="sub">Auto-detected from incoming events · click to override</div>
<div class="btn-row" style="margin-top:0">
<button class="ghost" id="btn-enc-nip04">NIP-04</button>
<button class="ghost" id="btn-enc-nip44">NIP-44</button>
<span class="hint" style="align-self:center;margin:0 0 0 8px">current: <code id="enc-mode-display">nip44</code></span>
</div>
<h2>Relays</h2>
<div class="sub">Active subscription relays</div>
<div id="relay-list" class="relay-list">
<p class="empty">No relays connected.</p>
</div>
<label>Add relay manually</label>
<div class="copy-row">
<input id="add-relay-url" placeholder="wss://relay.example.com" />
<button class="ghost" id="btn-add-relay">add</button>
</div>
<div id="auth-banner-host"></div>
</div>
</section>
<!-- MIDDLE COLUMN: methods -->
<section class="col">
<div class="col-pad">
<h2>RPC Methods</h2>
<div class="sub">All NIP-46 commands · click to expand</div>
<!-- ping -->
<div class="method" data-method="ping">
<div class="method-head">
<span class="name">ping</span>
<span class="desc">no params · expects "pong"</span>
</div>
<div class="method-body">
<div class="btn-row">
<button data-call="ping">send ping</button>
</div>
<div class="result" id="r-ping"></div>
</div>
</div>
<!-- get_public_key -->
<div class="method" data-method="get_public_key">
<div class="method-head">
<span class="name">get_public_key</span>
<span class="desc">returns user-pubkey (hex)</span>
</div>
<div class="method-body">
<div class="btn-row">
<button data-call="get_public_key">fetch user pubkey</button>
</div>
<div class="result" id="r-get_public_key"></div>
</div>
</div>
<!-- sign_event -->
<div class="method" data-method="sign_event">
<div class="method-head">
<span class="name">sign_event</span>
<span class="desc">signs an unsigned event</span>
</div>
<div class="method-body">
<div class="row">
<div>
<label>Kind</label>
<input id="se-kind" value="1" />
</div>
<div>
<label>created_at</label>
<input id="se-created" placeholder="auto" />
</div>
</div>
<label>Content</label>
<textarea id="se-content">Hello from NIP-46 Lab — signed by my bunker.</textarea>
<label>Tags (JSON array of arrays)</label>
<textarea id="se-tags">[["t","nip46lab"]]</textarea>
<div class="btn-row">
<button data-call="sign_event">sign event</button>
<button class="ghost" id="btn-publish-signed" disabled>publish to relays</button>
</div>
<div class="result" id="r-sign_event"></div>
</div>
</div>
<!-- nip04_encrypt -->
<div class="method" data-method="nip04_encrypt">
<div class="method-head">
<span class="name">nip04_encrypt</span>
<span class="desc">legacy DM encryption</span>
</div>
<div class="method-body">
<label>Recipient pubkey (hex)</label>
<input class="enc-pub" id="n4e-pub" placeholder="64-char hex" />
<label>Plaintext</label>
<textarea id="n4e-text">test message via nip-04</textarea>
<div class="btn-row">
<button data-call="nip04_encrypt">encrypt</button>
<button class="ghost" data-fill-self="n4e-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip04_encrypt"></div>
</div>
</div>
<!-- nip04_decrypt -->
<div class="method" data-method="nip04_decrypt">
<div class="method-head">
<span class="name">nip04_decrypt</span>
<span class="desc">decrypt a NIP-04 ciphertext</span>
</div>
<div class="method-body">
<label>Sender pubkey (hex)</label>
<input class="enc-pub" id="n4d-pub" placeholder="64-char hex" />
<label>Ciphertext (base64?iv=base64)</label>
<textarea id="n4d-text" placeholder="paste ciphertext from nip04_encrypt"></textarea>
<div class="btn-row">
<button data-call="nip04_decrypt">decrypt</button>
<button class="ghost" data-fill-self="n4d-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip04_decrypt"></div>
</div>
</div>
<!-- nip44_encrypt -->
<div class="method" data-method="nip44_encrypt">
<div class="method-head">
<span class="name">nip44_encrypt</span>
<span class="desc">modern v2 encryption</span>
</div>
<div class="method-body">
<label>Recipient pubkey (hex)</label>
<input class="enc-pub" id="n44e-pub" placeholder="64-char hex" />
<label>Plaintext</label>
<textarea id="n44e-text">test message via nip-44</textarea>
<div class="btn-row">
<button data-call="nip44_encrypt">encrypt</button>
<button class="ghost" data-fill-self="n44e-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip44_encrypt"></div>
</div>
</div>
<!-- nip44_decrypt -->
<div class="method" data-method="nip44_decrypt">
<div class="method-head">
<span class="name">nip44_decrypt</span>
<span class="desc">decrypt a NIP-44 payload</span>
</div>
<div class="method-body">
<label>Sender pubkey (hex)</label>
<input class="enc-pub" id="n44d-pub" placeholder="64-char hex" />
<label>Ciphertext (base64)</label>
<textarea id="n44d-text" placeholder="paste ciphertext from nip44_encrypt"></textarea>
<div class="btn-row">
<button data-call="nip44_decrypt">decrypt</button>
<button class="ghost" data-fill-self="n44d-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip44_decrypt"></div>
</div>
</div>
<!-- nip44v3_encrypt -->
<div class="method" data-method="nip44v3_encrypt">
<div class="method-head">
<span class="name">nip44v3_encrypt</span>
<span class="desc">v3 — context-bound encryption</span>
</div>
<div class="method-body">
<label>Recipient pubkey (hex)</label>
<input class="enc-pub" id="n44v3e-pub" placeholder="64-char hex" />
<label>Kind</label>
<input id="n44v3e-kind" value="1" placeholder="event kind (0–65535)" />
<label>Scope (optional)</label>
<input id="n44v3e-scope" placeholder="e.g. the list's d-tag" />
<label>Plaintext</label>
<textarea id="n44v3e-text">test message via nip-44 v3</textarea>
<div class="btn-row">
<button data-call="nip44v3_encrypt">encrypt</button>
<button class="ghost" data-fill-self="n44v3e-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip44v3_encrypt"></div>
</div>
</div>
<!-- nip44v3_decrypt -->
<div class="method" data-method="nip44v3_decrypt">
<div class="method-head">
<span class="name">nip44v3_decrypt</span>
<span class="desc">decrypt a NIP-44 v3 payload</span>
</div>
<div class="method-body">
<label>Sender pubkey (hex)</label>
<input class="enc-pub" id="n44v3d-pub" placeholder="64-char hex" />
<label>Kind</label>
<input id="n44v3d-kind" value="1" placeholder="expected kind" />
<label>Scope (optional)</label>
<input id="n44v3d-scope" placeholder="expected scope" />
<label>Ciphertext (base64)</label>
<textarea id="n44v3d-text" placeholder="paste ciphertext from nip44v3_encrypt"></textarea>
<div class="btn-row">
<button data-call="nip44v3_decrypt">decrypt</button>
<button class="ghost" data-fill-self="n44v3d-pub">use my pubkey</button>
</div>
<div class="result" id="r-nip44v3_decrypt"></div>
</div>
</div>
<!-- nip44v3 self-test -->
<div class="method" data-method="nip44v3_selftest">
<div class="method-head">
<span class="name">nip44v3 self-test</span>
<span class="desc">run the upstream NIP-44 v3 test vectors locally</span>
</div>
<div class="method-body">
<p class="hint">Runs the vendored <code>test-vectors.json</code> from <a href="https://github.com/nostr-land/nip44v3" target="_blank" rel="noopener">nostr-land/nip44v3</a> against this page's local implementation: key derivation, encrypt, decrypt (including the non-standard padding cases), long messages, padding sizes, and invalid-ciphertext rejection. No connection or keys required.</p>
<div class="btn-row">
<button id="run-v3-selftest">run self-test</button>
</div>
<div class="result" id="r-nip44v3_selftest"></div>
</div>
</div>
<!-- Vendored NIP-44 v3 test vectors. Source: https://github.com/nostr-land/nip44v3 (test-vectors.json)
sha256(original pretty file) = 8350608081acdf8fe659db9cfd1f901cbf6d9da8ef011e7e545ed376eaca0043 . Inlined (not fetched) so the self-test works from file://. -->
<script type="application/json" id="nip44v3-vectors">{"encrypt_decrypt":[{"secret1":"1b7023bb70248d8edab44658c5e2677dd7e5d7093ec062eb204975df4255fddc","secret2":"827844538be12d1cfa0f7fa096668cc4f2c4a25c2c8f7e92ca6cb05c3c445d17","nonce":"b5451a6d90ec575b4cdcedf4987429eeab1bbaa192ea3db89eafa058826885a6","kind":1,"scope_hex":"","prk":"3520160171dc39d75e64768d4fb667647480d458fc4d5c26d000a7cb3c8805b1","encryption_key":"de94e4663af538351a9b75b8af31e968ed8b88241ddbce43ad1d4ae2b984327d","mac_key":"70e65d5ff8769e92fbdf163b00b1b317bd4d30fe82de6b00d05cd74fb576febd","plaintext_hex":"efbbbf48656c6c6f20776f726c6421","ciphertext":"A7VFGm2Q7FdbTNzt9Jh0Ke6rG7qhkuo9uJ6voFiCaIWmMJrEDBNRRCorotVxmP7ge14Y+UtDn1/Pn3uzAaNNzHUAAAABAAAAAPJgoFXpn6mjFE0hUZrnZljeaYwSdqBKbVDXcyLgVGC8"},{"secret1":"f9869a8237c9fffd3bc175d21cc144051de4889da28b462ca1e4557adc2d2275","secret2":"c4c53829b9ad83682873761b71d667457935eaa84159a206dea58f18be09d05d","nonce":"f99a4a4a84a4906d839b62861dcd54883cccabb3616d003f27250ac00e672c50","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","prk":"7eeee2eac804eae839f64c4f2204ba6c205a65ae895bea006a45afd2ff9afee0","encryption_key":"56c727b1f69ff6ecb29c6cfd6469c1908da5556b0c13123b3303d5068edf03b6","mac_key":"f6be43893bffe64c43d56ee2692014d3e5275a78a3cd8268e2e1e0cb707a6bad","plaintext_hex":"6e6f7374722e6c616e64206e697034347633","ciphertext":"A/maSkqEpJBtg5tihh3NVIg8zKuzYW0APyclCsAOZyxQfHiK7t6u8D4JR3dRUKMpBRQzoOYtunePezG3p65AXPEAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzvgOo5isSBI06S531Yb9j9l+LpL9dA0D9/LLtorb866Y="},{"secret1":"2f69dcb9891cf749ab0b4e07a718a9e364c44e7603d851c7c09e080b631534fb","secret2":"110ffc1f2ea8b15ffd5d24c59dc1b72c4b1f8180dd5ccb6a68097ff328f49e54","nonce":"ffffd9144f5fe48077ac672e1366d303dfebdf60b1abd07fce1ff762bb25a4aa","kind":1,"scope_hex":"e381afe4b896e7958c","prk":"dd23c1dad51c025ed632be8b8da198517eef83a86729ccf524382f6011c9500b","encryption_key":"44f5de03559045aeb509d670299e7eab7f12682a7d5cc6c9a1441fd35f9484a9","mac_key":"ab08e3aa28d40c9376a56056dea33b3e935402da5585607b081ad166cecd8432","plaintext_hex":"f09f9088f09fa694","ciphertext":"A///2RRPX+SAd6xnLhNm0wPf699gsavQf84f92K7JaSqrm0b+bxgKBqNS04QURAmEXZlYBY9Ed4neDw2uOAqkGcAAAABAAAACeOBr+S4lueVjIEUNKR4ekMqHUoWb/ks495G0c1lD6oPQ3ZFsa4LHvRE"},{"secret1":"e945941c87478b88c8af150219ed8055692f3f01543a3dec3cb40854fdf8545b","secret2":"11eefd6b9a1a4d4e4b71840aa77eb47d3821d825ca8d4e45065ff563bdc342d9","nonce":"726cab7f363afe8c0783dc1d2d6e4700ace52a26996a53ba3928ef3c865cc235","kind":1,"scope_hex":"efbbbfefbfbe","prk":"7fafc5865086ba6ef1d48c93fa5e8c84dc0fd73924f23a4560d8d0f31f9ab2db","encryption_key":"2b6ed20127afba197082b52159120042d0bdfec6df2e657944f79a62ec90a1d0","mac_key":"2e72490f486fd6f0ed2ca5e508dff16b6db6936df59b77406717e6aed645d2a0","plaintext_hex":"e69a97e58fb7e58c96e381aee3819fe38281e381aee382a2e382afe382bbe382b9e588b6e5bea1e6a99fe883bde3818ce799bbe5a0b4e38197e381bee38197e3819fefbc81","ciphertext":"A3Jsq382Ov6MB4PcHS1uRwCs5SommWpTujko7zyGXMI1d8FRsRgcGnjOo+Ifry8x/QC+vDDkPCHv7WDaem7tQ10AAAABAAAABu+7v++/vm+/pDQcUXHli2Do1EEoqYFmF/67UUcl31Ks9TRy9vCwc2IUY6Ev9T+oBanqVWGbPgAWysjisi5dIPAEcndMK2Ur4m2UqTo3WVTIqKmy30ad5VOwl4v1AHweiZvJU/w+lQ=="},{"secret1":"98c7c39a4abf5f923db71a3e2c0951fa020bc5ba1555c158ebc8663e1582bb01","secret2":"b775d4f4ef14b1a93cc34a534a64a1ec2cd1a64a5a7b45f837af5ea4595b37dc","nonce":"ec64f769d99bc3c6f5231145b546334275d910e11fe9a11351ee487e4dbfd4ec","kind":1,"scope_hex":"ef8080","prk":"98fca3e635b9478407385a8989fb78ddb115d992a92019852953a4cd139aeb69","encryption_key":"9e6bdba691401f02de1403f75ebcb3516f5ff3b77c8a3918d8a3393e73eb3188","mac_key":"b05399edc9e6eae42cc21ec5941a73e8b7387bf10f49dfcfd740131309d81c35","plaintext_hex":"9b8de973ddf42a02103de24d9b7a4f0c4f551abaf7cd88f08e7a9c4d41ec5f777b45c890c112968fee50dccd3287583e9a3a33f962d78054f36dcb6f1ea9a8aa3fcb80953e04f6a2b3c3c4e26909ef7c5e84da6df3fd423215015640b249c91b28b38b18499b615bf1e92635e1df15aeeba2063692ce7cc8296582ceed25ceda","ciphertext":"A+xk92nZm8PG9SMRRbVGM0J12RDhH+mhE1HuSH5Nv9Tsg6J943ljpXnIaVIuHaXrWfa99RkqZOW6NGy6oqm2HocAAAABAAAAA++AgNCkiGZgN5Uzx1HVpcoLQQisIwWD32PqBoQ4T598/KmHsxUAGEARiXh9ikGXtwKuH8a8EzTcobkr4OEXfPs0h5u0A1HUJ3M/Hc/orcqZgeA0RhfZe3IASVmQfU9/pge+nTPjJVK5ZHOlEBnt7tmYcT8vqv9bpxbyhCBGMO6nEFhUtrr2IKCW3Z6vljg7T3FDr7aVIY/cxniq4E+e5ec9pZ+wn3j9PAibWgEANCDK5nyiH6B348lnqxfmu8bvzzyPhA=="},{"secret1":"b0e73a57d65972a4276879cb8604f683dfd9197cc236f299ea55acb66bfa8ff0","secret2":"ebf87d9858227055ac9f789911edad1b55777edc99dd4b8634f52bb8c0922edc","nonce":"c027624d50656a34add75cec7e476e6287bc919cacf0ebbda6d3277c02b0a239","kind":1,"scope_hex":"","prk":"a76ecc57266a24238761cf79c9909e27af6adfa523fb914a1a54e17d15e26287","encryption_key":"3c5be4141db8d4e4bfd998b6a4f995922070b9dc4af41c5d50c89c7ccd437f0e","mac_key":"92704765cd32cbe3beb21f347541184fc0cff839c8d2077d198d1f91103bdd22","plaintext_hex":"6120646563656e7472616c697a65642070726f746f636f6c20666f7220616e797468696e67","ciphertext":"A8AnYk1QZWo0rddc7H5HbmKHvJGcrPDrvabTJ3wCsKI5ZMf+aMW7P7Iz5qDghY+87TL5pZjNiykm0xpMKlkwITgAAAABAAAAAE2F94qgXOR+co8R41Vu04wLtkrI3Y5QJbVmutA5v1MkCgrLCmZAwNXhQsUnzUOuAPloXVQQdgQL4gmVgIz0rqQ="},{"secret1":"0bac57d63af3e6650152577f7d5515062270b68cd2cda1250604ab70b7cdf091","secret2":"ddb09a891ef13bbf1b9ed8fb403afce4eea2197428da805dc85d90eee76e20f2","nonce":"0da18d3ebcc5f269f6415e3e3fcb5e1a8d76318fe439ec83cfdf99ef8eaacee9","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","prk":"d084d04cb7e61bb0c8fc7fbfaf48b58863fc01c1a4cebc7d48cad3b3853ac7a7","encryption_key":"be6eb2e4aa213dc2260abc2414e763057ab7df785e33338f1a3167ac280ee7fb","mac_key":"59f55d61316dee4f7f71c7b3d9704ef822d5d31bcfda30d02a267f29cb20d92e","plaintext_hex":"efbbbf48656c6c6f20776f726c6421","ciphertext":"Aw2hjT68xfJp9kFePj/LXhqNdjGP5Dnsg8/fme+Oqs7p+xyexXUdk8ZJ2rtLWT1xQ9lXxWSiagEVpRg35PndmKQAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzuKZ6xxWsljlgBA/i6yz7+dmE6dyszU9qkR7f2xDUQdg="},{"secret1":"b69f38d981ad22b1fd25473756b2dd9c69d1554c6d31ae2a64c0fc82aafd86ac","secret2":"c916f18fd08a90c1d20bdfe27f31c53d33ebefdbe28e3da8797632b4b474b9df","nonce":"8b3c3f3aaf575328259ac5e3c08191dde308c573e3f4e7cda7042f82133143fb","kind":1,"scope_hex":"e381afe4b896e7958c","prk":"93c97bd637c3fc60d9dbdb410df34c4a614c52db57ed0f2a218e8a973e125265","encryption_key":"e0a45a9306cc404aea91687e2b3c26abe23b0e12945799279e332c1880cacd78","mac_key":"b21748a15b40d53bbdaeb81c419c160994780d141324fcb1ac65bcd8be6bb6f4","plaintext_hex":"6e6f7374722e6c616e64206e697034347633","ciphertext":"A4s8PzqvV1MoJZrF48CBkd3jCMVz4/TnzacEL4ITMUP7b2QxXAKNEKp93ebvTrmrJ4aeJtLvqRokEeGXPBLE9UsAAAABAAAACeOBr+S4lueVjO04T51hx+sZw9n3gheEAyVOP0w/pWFvFtCuolpBkHvk"},{"secret1":"20d7e7e95a8e6376438182425c33c9445055fa4a8bd2c57e5c7902015433e18d","secret2":"d38139efe4118dd5862c2556600ef7914d1659cabbd1a3d5fd9f2a0abe9dcbb3","nonce":"20c635f2f795178ea0bbf9856dd99da02138ba79337d2511d887f2a065b917c9","kind":1,"scope_hex":"efbbbfefbfbe","prk":"4f9c75fe7c850a79f83000901ef8f020301c06e413a84de01784971ec249bb7b","encryption_key":"4345c818ddb2793427d8f5bb056e663cd941f910165601ff6806866cb7fb0fc3","mac_key":"4eb9ee0ea464574336446a8aae961f05b6a65cd5feb2087417eabf5344c554da","plaintext_hex":"f09f9088f09fa694","ciphertext":"AyDGNfL3lReOoLv5hW3ZnaAhOLp5M30lEdiH8qBluRfJTmsWPfIzALsx5OokjdKYAWkgDkES88FoC4k6wtgxUK8AAAABAAAABu+7v++/vmSE/qHW8+XDY97+8EQCRVPzORPYKrnLM6mNRp+zl2C6"},{"secret1":"1a2c6e81b5f1038fdda1f555d0431d1bd3efb22d57f608708fa46d7d7b96f1f5","secret2":"c18596eac499c94e04334021c1b6952757d83aeda2aa84f90ab47357cdd29fdb","nonce":"a05a11dcd50aa1e855b7e11a816158a1a4827d21a00b60105ed3c8e802770d77","kind":1,"scope_hex":"ef8080","prk":"c043b08590fcc2ef03e299633af842deffd1b5dbd2bf598606bf02abb898303d","encryption_key":"ba927e27a656a34369920ce7be028b6f6cb5878890123d1d3ba6b9f7ef4ab9c4","mac_key":"71163bde93ea8fa3b5574e81869416bcb8f6954a3b746e1b2ed24546949e208c","plaintext_hex":"e69a97e58fb7e58c96e381aee3819fe38281e381aee382a2e382afe382bbe382b9e588b6e5bea1e6a99fe883bde3818ce799bbe5a0b4e38197e381bee38197e3819fefbc81","ciphertext":"A6BaEdzVCqHoVbfhGoFhWKGkgn0hoAtgEF7TyOgCdw13O273WC9FSDyMtfOYNFvOlZQcaSrLdo6WBQ7ZI2UWn5MAAAABAAAAA++AgPPJWHFZya+M6arLz4wrWMHfL4Wyv4gYZBkicAvVBX0dMsr5tBcTP5xaM4lJZZnokEvMZRzYbjrfNTjT2gCWBapNdr/QrHxlTDa54nRmVR/2GBLkmQ5QeIiDm6OhfjXyYA=="}],"decrypt_only":[{"secret1":"fce6ddb6b9611964b37466e29f89f212f6905a70e5b0ea20b33ac9a4a74e60cb","secret2":"45d28e26e1072c9495857efc85bb56ba0833271d7cb183c6459b8ca17311ed7e","nonce":"d55b86093a16aabd228b9ac1724749e492fc3a81491c7374bd7a1d28a7b3b4a3","kind":1,"scope_hex":"","prk":"5f359143a097d9b66ec8e0cff7c111076efa06b5ec2f9185e13a304c4467a4e8","encryption_key":"cbb7467f7c3a6f04c5ac6e4554de2034b67f2ac32a94d58f44e7a14e80912b0b","mac_key":"784feeb31cf134baaa13d387f5102cf1f06a0e4d60cc737ba4c0311987401e9e","plaintext_hex":"efbbbf48656c6c6f20776f726c6421","ciphertext":"A9Vbhgk6Fqq9IouawXJHSeSS/DqBSRxzdL16HSins7Sji9VE1vdW4PQiqseqUsGZsaAvIe2yGmfWOXiimOZHRUUAAAABAAAAAHm5SMpSTmibFgS1CqDSU5sC6MEPKNyTHS7oxNAb/AAFwta2Xpcc","note":"non-standard padding (23 bytes instead of 17)"},{"secret1":"099f9dd917f81a515d587164ed21bfcc3897bf705a7c9b3de85abcea809831df","secret2":"9806d1447c80921a15ff6c737204d985fbee09a6fb123ec8c1ef8749a939ac6d","nonce":"382baacbba8cba0cc6e8a7b4444fb157186118a18b3dbf652fb6b1e8267bcac1","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","prk":"57dec8dfe66043f16b839513bffe2855984a725e50d8c63d4f5738d9dc6d0ed9","encryption_key":"c8ef9801a429de8526739c8d84c62eaf632b0d52023590c7449c8178885dcd57","mac_key":"7ad04de35b988b240f78285e597fdca8e963988664f4808878afc2ba0aa9a4c1","plaintext_hex":"6e6f7374722e6c616e64206e697034347633","ciphertext":"Azgrqsu6jLoMxuintERPsVcYYRihiz2/ZS+2segme8rBD0AqKypuSHff1x0FW+qO4lQlLltEjPWrvoMo7fbKOfwAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYznEO1UCJd2Ld0YV51u6kOkY3g22UhvNBAXY3sFnKmPu6fYx9s0rDWwNZcGxsMs+VydrONvM5F","note":"non-standard padding (36 bytes instead of 14)"},{"secret1":"a62c0eae8281f8997c6391889be1c39df8d06acbde7cbb5e23b8e6ba28c95328","secret2":"c51b92dfea8551090c2e17d22953f7124fdd6a59e7c67daadcb92819279801d4","nonce":"f08ea755450d9666cc122f2aa89794b170b8c69c6d7ff5f1d25bfae52164ca3a","kind":1,"scope_hex":"e381afe4b896e7958c","prk":"916e05d26ccb1d5f58698911c85789b89529baa9c4fb5fdcdac80f94afb525f8","encryption_key":"9110aa1049b70cdd93c38fa4888459d7286a78f5ca584d4dd658905660d4faea","mac_key":"a597dea28fc706883f9dcc4917209ffc10788c95e86f090a694ea51bc5fe7a11","plaintext_hex":"f09f9088f09fa694","ciphertext":"A/COp1VFDZZmzBIvKqiXlLFwuMacbX/18dJb+uUhZMo6uAhk3+WwQOcgQUgH4zhxaRzi80m70t5a9uV5B11EdpcAAAABAAAACeOBr+S4lueVjPeRbg5pf83dLf79+g1wPXb8mjm/rT9e","note":"non-standard padding (15 bytes instead of 24)"},{"secret1":"740853175b987393b113ac196ccf5152ed4a206b1a365291abacaf106c7a3bca","secret2":"da1a37af7852a7e5c0a7ce90a39950039bfaeab96297ef83b9d8817f5a2d26f9","nonce":"f7e0f4b83ebb87657001b8e47d5940a3d062dfebae66da5a2ad0f4e498fedf85","kind":1,"scope_hex":"efbbbfefbfbe","prk":"75c09260e4c8b8240514aee23723531df5f7816a25601e74e0ccbe87a965b309","encryption_key":"94cf5b47ccfd36dadee996e637ae2a11bd9ac53ff7a29573fe368adf8b1e4f20","mac_key":"a2e6d59755d7193c5cb9eba5965a42d2696062d455c2c7c535ad88b1c13d415b","plaintext_hex":"e69a97e58fb7e58c96e381aee3819fe38281e381aee382a2e382afe382bbe382b9e588b6e5bea1e6a99fe883bde3818ce799bbe5a0b4e38197e381bee38197e3819fefbc81","ciphertext":"A/fg9Lg+u4dlcAG45H1ZQKPQYt/rrmbaWirQ9OSY/t+Fhm1xiEi20bWbMLIDrNw7Gz6XU0bDmmmgYl3g4z68Z+4AAAABAAAABu+7v++/vhLMBXKVPi51crCqEwCQnuB0V13+nE22PpVe7jQiELzDMqdrE6intBrXyHJLrJ4VteEZoiU92jZDoG9ieltDh0NnKRKq7cuW/om3DIhB0DCb0Pq6C5g/VaFaz2+mVPXV0p2BMW2MpuKUJ7/VYAlJPNSlK/JSYpQq","note":"non-standard padding (50 bytes instead of 27)"},{"secret1":"28531e3c28be034f8bcca7bc25e5b9a6cbbcce8567f2a9016b3f1ad7707a724a","secret2":"96108e608b4231562b07d21021361e3efab87350021a9247ce410585c0adf757","nonce":"a82a808ca1a40368336f19e9d3f83bfaaa35e4b8bffc9b5d9426ae518b9f34d1","kind":1,"scope_hex":"ef8080","prk":"38846e1253b841b6960c3be79ec4b6bc1e0ce7c6e40a05f6ea2190ff0c53044b","encryption_key":"cbecc983553fb82f9f3f615dd959a451d66388d8632d2028a684c9f02c611f3f","mac_key":"5ed551ef02ba987cfdd4716c4a840a654501ea57aee9da055651669f85ac016e","plaintext_hex":"9b8de973ddf42a02103de24d9b7a4f0c4f551abaf7cd88f08e7a9c4d41ec5f777b45c890c112968fee50dccd3287583e9a3a33f962d78054f36dcb6f1ea9a8aa3fcb80953e04f6a2b3c3c4e26909ef7c5e84da6df3fd423215015640b249c91b28b38b18499b615bf1e92635e1df15aeeba2063692ce7cc8296582ceed25ceda","ciphertext":"A6gqgIyhpANoM28Z6dP4O/qqNeS4v/ybXZQmrlGLnzTRH0t5gnTV0ylQcxxkbLRHyKXnIagqYk5XMlG/85NYwuwAAAABAAAAA++AgM9zXmWWTYSixZDotwM+8HmJHW3aBt44KvZkhInVvt+Xmzh1YaPW8cbVr9kOQ38+cc5E285UfL164P71915Pr6mHNGOHtpKcX3P6TXCrch2MLux4m9xHf0BPcuv4+bwC0fLpNKVJLnNAnnGm7VOXdE2HhX4NP8ujzvH6cKTGfiyK0OlVpWX6Le+v/h2wm6m2SAHSJLbi6fIdA6MDilizVMqyaEFZ3n8eRYQ+To6eFKojRQw=","note":"non-standard padding (50 bytes instead of 64)"}],"long_encrypt_decrypt":[{"secret1":"e35f016acdf0bec26f9f0e97fd813aa042727cb1e5ac2adf1c7b8d18d393f455","secret2":"e3c47278057365a1007414224f54ee99e6198ac6b6a82917e635375a1f9afa8e","nonce":"0598a9aa024df86e1e532e8cd3ed412e5b8bc914ff0340aa8868f9fd2fe2871f","kind":1,"scope_hex":"ef8080","pattern_hex":"9b8de973ddf42a02103de24d9b7a4f0c4f551abaf7cd88f08e7a9c4d41ec5f777b45c890c112968fee50dccd3287583e9a3a33f962d78054f36dcb6f1ea9a8aa3fcb80953e04f6a2b3c3c4e26909ef7c5e84da6df3fd423215015640b249c91b28b38b18499b615bf1e92635e1df15aeeba2063692ce7cc8296582ceed25ceda","repeat":511,"ciphertext_sha256":"cf2c183f974c2601c0ec5d4fad0f0f98f18b0c83bc4e988c53ec1e496528deb1"},{"secret1":"69efe21ce6ffe00d4126a019542e61324ff59fef06c81798cf1ec9810bfa5566","secret2":"91749344a212c2168587ad46197ef2eb026e3fa6839cb4286599c4f24820431c","nonce":"8c9f02398c9c5c11260b9ec27292bd32f0127c3e5366b255e0878ecb82e81eeb","kind":1,"scope_hex":"efbbbfefbfbe","pattern_hex":"9b8de973ddf42a02103de24d9b7a4f0c4f551abaf7cd88f08e7a9c4d41ec5f777b45c890c112968fee50dccd3287583e9a3a33f962d78054f36dcb6f1ea9a8aa3fcb80953e04f6a2b3c3c4e26909ef7c5e84da6df3fd423215015640b249c91b28b38b18499b615bf1e92635e1df15aeeba2063692ce7cc8296582ceed25ceda","repeat":1023,"ciphertext_sha256":"8538f11d334dee64c561961ab7b371a90cb5ded3d1bf6c544d93aa4c72e5b1c0"},{"secret1":"9ed97778c4bcaf3b5c66c41d3b97ec62e89e2bb9ead5d27a980a1c268a24a2c9","secret2":"58cba97d2985b001a7367a088a2e868a85158bd218f2a5858eb23a43de4ea382","nonce":"d8212d54ca0a36a7a5ed9f33656aebcd995f64dc6c4551a54b0dad5b897e254c","kind":1,"scope_hex":"e381afe4b896e7958c","pattern_hex":"9b8de973ddf42a02103de24d9b7a4f0c4f551abaf7cd88f08e7a9c4d41ec5f777b45c890c112968fee50dccd3287583e9a3a33f962d78054f36dcb6f1ea9a8aa3fcb80953e04f6a2b3c3c4e26909ef7c5e84da6df3fd423215015640b249c91b28b38b18499b615bf1e92635e1df15aeeba2063692ce7cc8296582ceed25ceda","repeat":2047,"ciphertext_sha256":"66c5b453cc7123d9826115d437902db5226dd25f41aea9519f986938709c2901"},{"secret1":"77930acaf9d28607482f0d329d65eea04fd218a957f25004d6606414dcdea848","secret2":"c31571de3b9b8053d5477a8dd090d7ed7ffbed98f8e9c904b8034ba77f74e232","nonce":"b40a2f2ae51c8355ed8bce7f810628c5fd3a4c5d4fe9170c159b9c7e9d1d5f87","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","pattern_hex":"f09fa694","repeat":16383,"ciphertext_sha256":"ccd2942a398aaab22845d6d65599a82fa9ee5fc1caecb5a8cc358771b1b7ba7b"},{"secret1":"dc0ded78a0d133195b49429aadc6d424fde9b98a0e9ee12b4382bc0f08125a1c","secret2":"fac11ede5498f415f3a48cdf052a4e0d2f77fc4012baaf77de70a3f2cb4bc195","nonce":"7f2506e82ad6d97fa2cbbc2cf9f3a02bb61ce65bbe72a891c07c7bde23ade06b","kind":1,"scope_hex":"","pattern_hex":"f09fa694","repeat":32767,"ciphertext_sha256":"d84d643bda0d6f11dfc165eff69ab7c12c31f7f651603fe9e3397fb2ebb44a24"},{"secret1":"b585991901f19ca1353b4122a591c3ade793338174f70326ee351d54b2b4c9be","secret2":"cdbc4210a142109928087965a6e47922ed65763165cebdb54498770da448d5b0","nonce":"aef913a704ce90355a134dd5f4ea253115d9d426269f371f45a33de3c79a90d7","kind":1,"scope_hex":"ef8080","pattern_hex":"f09fa694","repeat":65535,"ciphertext_sha256":"75d4386e1e5bf39c2775486c066274fbceb9e0aff2880b513ec1593ce8a68f74"},{"secret1":"57420cd8c43b789a506e7dd1eb433b010e5323eb219de7c6a6a6f6976aa80693","secret2":"370091dce8dce4c3cf6b1a67ec8f41f9ae78a69ea902c67bdfe8930d90b2b7d6","nonce":"15ecf921c0e227f5199523de99193626087d506d998b8abd3c086e66fb25af0e","kind":1,"scope_hex":"efbbbfefbfbe","pattern_hex":"e38193e38293e381abe381a1e381afe4b896e7958c","repeat":3120,"ciphertext_sha256":"0577e05453f458e700740be3d849096f3d9d46924333ce3aa27c342a786a6cc4"},{"secret1":"aeda4666950455c2e038d6b7d9e000be92be6aaecbb57b7f0f980ba29da52453","secret2":"9d819437f4eb60290bfb9aa547d426516a3ea07a2149e46f3310acc85dd45a18","nonce":"56146d9c3caf5c118288754d2caabd142eb45e1f2d80f3caf5183888ca2ee416","kind":1,"scope_hex":"e381afe4b896e7958c","pattern_hex":"e38193e38293e381abe381a1e381afe4b896e7958c","repeat":6241,"ciphertext_sha256":"6a0c112e126aa897f80ac73227fbb062ac7ded96f641a05fa4634a9f4a8c702b"},{"secret1":"f153b2eadf9aa51bedf90ac8804dbe2bc4fed1ddd3861a857ae80a20d5c55f27","secret2":"22c42e7079ae57313d99c2f025c1be2f5dd999a3898d9aecbed7a207a1018510","nonce":"a7db4437442ca0ffbd836822c622115bc001de197c9f1a1d3d67a1e63c044d30","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","pattern_hex":"e38193e38293e381abe381a1e381afe4b896e7958c","repeat":12482,"ciphertext_sha256":"c066419c9ee88e7c8a77dbe25fac1dd8e9720fa4f481924058189062b12e3fe1"},{"secret1":"217d14ae21140584417aa9bbcab4bdf4adccb5e74b191d65d2b357794f7f7143","secret2":"cccdef797a083bea633fcff31f255b57b5d5c99b682eda8ff132066dc3cd9127","nonce":"143cb408e61cf7b4281b0ccf300284a68d7df282f71667df5740b5f282424880","kind":1,"scope_hex":"","pattern_hex":"21","repeat":65532,"ciphertext_sha256":"e5360cffeef8c31c88a3455b920d9d9a98c8669b77d38ac232e0f67420467e5d"},{"secret1":"625bbf8de97b71e8d70092bb6c576ee95895b7e6d2acf924790c80dd69785e8f","secret2":"13e7e6925ef02a644ea1c7bf8b68ff7de8c676ecf7f22d49a78a1802a6933189","nonce":"1bbbfd8803eac5c844e96ade2fdacf18fe3bda62312bdda102a29b52dd0c97bf","kind":1,"scope_hex":"ef8080","pattern_hex":"21","repeat":131068,"ciphertext_sha256":"8dd9a3157906d3a4e3de2b4d552cddae489a0996812bacca7728996a2605cae9"},{"secret1":"266503c3818aa70800280c53be6f7f8156273c6c606cfbb0803d8eb63dca65f9","secret2":"9846126fad398ea9b6fe7ebddd7e28c021691eaff5355847cca42a2caacacb68","nonce":"9815cf89d4ab86023b1a427166fd8db49681a077d5724d1b743a57cd6fb96b81","kind":1,"scope_hex":"efbbbfefbfbe","pattern_hex":"21","repeat":262140,"ciphertext_sha256":"0bd33e75b6bb9be42a1fce897801d064943945a930977551437031a413e07443"},{"secret1":"39506d419c1dede09cba910247457d66be7b213adbd981e3af0ef69b46c790f5","secret2":"5294e3ad19298a304753a32a42be2d44f3438f553677f30aab591f8a19ba4fd4","nonce":"8ccdf24876123afdbce42e59d4e03c53589150b4f23b087d3e3bfe89d96a54a6","kind":1,"scope_hex":"e381afe4b896e7958c","pattern_hex":"00","repeat":65532,"ciphertext_sha256":"c4c030de28d8b5fa9aafb1961aab296f078aced2988897c7907fa67cae073de1"},{"secret1":"86bbd84e3e9e2db2e7ec37fb16900723aac499f1074b66586b44a3ed63022a3e","secret2":"17d3ff292c4a65e6181ecc201b9c5ed0c7e8408f36183659181414ddbb17c3d5","nonce":"f7ce68c00fb546c23efb88f778819c131797705abfc222886406b8547a9c244c","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","pattern_hex":"00","repeat":131068,"ciphertext_sha256":"3992c52ad7811ba181f572d37a0e1c9a4dbc1d9b127caa171896eb861d1e818c"},{"secret1":"d38c5d7c0ba3b3e103318eb12952a481a204ab8dfd1d440b8882e9f0649ac0ee","secret2":"484475e3653226fd962fb9ca9ea8c8d4929473308eb53fd73a8ccd95e5eb8b98","nonce":"47fd0420348c7c4dead0c52874f2efe9ba9ecc9c4f9ee82319e1f33338d3ab86","kind":1,"scope_hex":"","pattern_hex":"00","repeat":262140,"ciphertext_sha256":"e03e2f16a5ee7e874d3cdc52e36ae8e73791d664540cdb7ac36f65687c7fc2a5"},{"secret1":"fd20231a23032bde7acc638eb7086784670dcf8bc90e57a65c1d03d68594d3f0","secret2":"b47f3ba965fbea51c927b6846543480aeb25275c0e01c5c4d286ea087e70ee92","nonce":"6c9820a69d021d86a695eb3d5cc11ec638a799aca10ecfb9819b1efa3b9731ff","kind":1,"scope_hex":"ef8080","pattern_hex":"ff","repeat":65532,"ciphertext_sha256":"6621fc89a79464d19cbef605d962c9f43af90568c8c352007829445d1886c9bf"},{"secret1":"38c961d0c8289789cec189e8db140f740abf34c8251eb16ad93cc5f9021abeb3","secret2":"e985cda5e08979c17a2c148532434c6f830bc2243e7a5592704972328f24d62d","nonce":"3957e9cc3be20433aff61993558572099e186312e714050cd3a589ff675f0e07","kind":1,"scope_hex":"efbbbfefbfbe","pattern_hex":"ff","repeat":131068,"ciphertext_sha256":"e41d7c737462f18b653683796d739c3b93f284c9bc15182bd94d278d13b84dea"},{"secret1":"0666935a88d5196746c799ce0593dede7a8e8044930e62e07793950b9dab9b4d","secret2":"e3505f4e3b8fd37da2a9b4f3cb67864819e6272cdcdcf198f422598fa1114d21","nonce":"56fef50b564913b040a9ee83c9c1eb36ac6553a9e5ad699ac036fb4338a38e35","kind":1,"scope_hex":"e381afe4b896e7958c","pattern_hex":"ff","repeat":262140,"ciphertext_sha256":"086aaa494e3a4ca5bc573d91fbed292d9abe05fb730c54660bf5813250744aab"}],"padded_length":[[0,32],[1,32],[32,32],[33,64],[34,64],[64,64],[65,96],[66,96],[96,96],[97,128],[98,128],[128,128],[129,192],[130,192],[192,192],[193,256],[194,256],[256,256],[257,384],[258,384],[384,384],[385,512],[386,512],[512,512],[513,768],[514,768],[768,768],[769,1024],[770,1024],[1024,1024],[1025,1536],[1026,1536],[1536,1536],[1537,2048],[1538,2048],[2048,2048],[2049,3072],[2050,3072],[3072,3072],[3073,4096],[3074,4096],[4096,4096],[4097,6144],[4098,6144],[6144,6144],[6145,8192],[6146,8192],[8192,8192],[8193,12288],[8194,12288],[12288,12288],[12289,16384],[12290,16384],[16384,16384],[16385,20480],[16386,20480],[20480,20480],[20481,24576],[20482,24576],[24576,24576],[24577,28672],[24578,28672],[28672,28672],[28673,32768],[28674,32768],[32768,32768],[32769,40960],[32770,40960],[40960,40960],[40961,49152],[40962,49152],[49152,49152],[49153,57344],[49154,57344],[57344,57344],[57345,65536],[57346,65536],[65536,65536],[65537,81920],[65538,81920],[81920,81920],[81921,98304],[81922,98304],[98304,98304],[98305,114688],[98306,114688],[114688,114688],[114689,131072],[114690,131072],[131072,131072],[131073,163840],[131074,163840],[163840,163840],[163841,196608],[163842,196608],[196608,196608],[196609,229376],[196610,229376],[229376,229376],[229377,262144],[229378,262144],[262144,262144],[262145,327680],[262146,327680],[327680,327680],[327681,393216],[327682,393216],[393216,393216],[393217,458752],[393218,458752],[458752,458752],[458753,524288],[458754,524288],[524288,524288],[524289,655360],[524290,655360],[655360,655360],[655361,786432],[655362,786432],[786432,786432],[786433,917504],[786434,917504],[917504,917504],[917505,1048576],[917506,1048576],[1048576,1048576],[1048577,1310720],[1048578,1310720],[1310720,1310720],[1310721,1572864],[1310722,1572864],[1572864,1572864],[1572865,1835008],[1572866,1835008],[1835008,1835008],[1835009,2097152],[1835010,2097152],[2097152,2097152],[2097153,2621440],[2097154,2621440],[2621440,2621440],[2621441,3145728],[2621442,3145728],[3145728,3145728],[3145729,3670016],[3145730,3670016],[3670016,3670016],[3670017,4194304],[3670018,4194304],[4194304,4194304],[4194305,5242880],[4194306,5242880],[5242880,5242880],[5242881,6291456],[5242882,6291456],[6291456,6291456],[6291457,7340032],[6291458,7340032],[7340032,7340032],[7340033,8388608],[7340034,8388608],[8388608,8388608],[8388609,10485760],[8388610,10485760],[10485760,10485760],[10485761,12582912],[10485762,12582912],[12582912,12582912],[12582913,14680064],[12582914,14680064],[14680064,14680064],[14680065,16777216],[14680066,16777216],[16777216,16777216],[16777217,20971520],[16777218,20971520]],"invalid_decryption":[{"secret":"b2a4cca9347992d235fe115382098e313f6eaa3680248443b90c64e4e2ab039e","public":"dc62907f84a35acecfc55b6d82961399f019981be0cd7d5e6a5a0620f9158870","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"Awx1nilOH4b0PT+ZszAS4TqOfADUQxWfAHAUVyJmy7c8EvrgFmKouWAVFZyjYN2XuuGSWHlKeuo9bF9t7MwMGfwAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzVeOxtyTClFO2/OPL6lpuSi3WFTdQgbhX6g/f1Iv2K6o=","why":"invalid MAC"},{"secret":"83ed5a7ae0494831e938a0a8226472954be9daffb4bf5d7641473b35e959cf90","public":"90ecf0dd8a793c74809735cc37cc3b9de20ffc9aae0eae7a1a0c740ecf09e395","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"A90ZzLN2HaQRTrzzLoobOtW+c9GyPxVp64fhIygpEpLaYYbCN6Pq1rjptBbN5S2vCFPCsE3wmU5u3Wx6L8oZxJoAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYz8Sxek35q19YWqmhyQNRHVZ+sNTtdgXO3MCnvjw0nanb233a39sc969Lm5DaUPN+yTKV0NbtYYN5hIWDOMOXj63XtzT7S7i/LAhv/l8y1zLTc0aUUoIjEg0EHi/FvlakK","why":"invalid MAC"},{"secret":"efd2ac18f500ac0fa1b9639149432ff2d309d1b49c7f683c9ca4613d14449dce","public":"84194beab56b44c426b866261772bc0a447ea34f94f2317ce1350cb714021a25","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"A5vkMZfJPQuWeOQsEiuZX1M4VJLY/k2G1mL8EKHK/yq7gifeC4V4zQ4L1iiQ1oVgmTmhwb/vd21Fm3YZrpYGEvYAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzQlapufh4trECMJjdb8m/TNFFcFJJSmiM/XQpnKXM/wc=","why":"invalid padding"},{"secret":"2926c352495ce986639ccbb263ad2221df731bae6ee8ec329cbb5d00c5b9ca87","public":"3c4b835fc7de0dd3a02971b559ccd5d3bcd2eb3cce7c1023b93892918effb71d","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"AzW5Wy/bvTYdcVOLIL8W26mfgTFG19S0H2BC9kyqgqK+TZ8oI00WJTNqwJIg8JE7DqDnOY+Q40Yd3G8Hi4GobQ8AAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYz3cI/rKzcQ22idVIBuFgLEVJaK1W5uxh6M6AdMoKKtdxO+lESYYWCEh/zzj35MFMwSJTn8z+XFvv9f2jYgQXHvPmY13wLOpIrpoS2W8luUbOVf9fip5mZXHw3neYvc7jA","why":"invalid padding"},{"secret":"47c04c4c6d385ddaaef691bd58dab94f81f4ba9eb1ab832339c3d0042f998dc5","public":"cb6a3aa6d94a58c9f03354a2a8723c3449e06b19a0ccfe19353195b28ddf7694","kind":1,"scope_hex":"e381afe4b896e7958c","ciphertext":"#A2A/tbfDDqn4qx267aPFZDwyH78j9zZV8g8ekZKonH8bDR7vYhp7zzh3oJAlJWem/Z5OVrRvUAJQrx8q289PqsEAAAABAAAACeOBr+S4lueVjASdOe8pTxevoZoYq1Y8rRarB6+yzRlquT4RZlmHH3jLEQmAbBjQGrOXi1uWPbaKC8j/VpjW5S9BAtyMSMpUcHg=","why":"unsupported future version"},{"secret":"751321afdaaf76aeb87851ca8f35eab87d0f50e1ec595c67e7e37ced7d6b7b9a","public":"a340bd34205bb0f3dc2f9aa3fcb70fc52c326cc4566c457bb9cfb9ae17c239af","kind":1,"scope_hex":"e381afe4b896e7958c","ciphertext":"AP9SHg4CFoD4fy22vSMNZV+efP7Ld7GCOpIKeZANqL+Kspe380sGxRQGKyy/liCuMi8DbcfQJypivkS+Y/bz3sIAAAABAAAACeOBr+S4lueVjMM0jKIQIfjKuEBBmjWPFmQsB20qe5pcJiLpnnXmp12z","why":"unsupported version 0"},{"secret":"c4ca1bf68b1f768bbc3670d554036b5c892303319ed6f7228e8dc2f6c99dd0b3","public":"537986db4ffe564eb7d565643e78dbc24e86650957e6e7c2c8d0124fd04fd68f","kind":1,"scope_hex":"","ciphertext":"Ap2Mv1HTQrVArE2UVevKq7rQ+a0FMw8OBuiAMnA81jJit7c0QzkEMr/o+5++t0/FbXFABfQaTRpF+dBuISyw3rEAAAABAAAAAC5e+Y9lfvgD1trmXL2Jv5H3Khi8ayWJJQMrVOEMd9tlJNj1b7k/ZzIG71f2GBzzoeBImA2fk+q6Iix4v5jUulo=","why":"unsupported version 2"},{"secret":"9460c5781801b35f01c1093434266cab5ba997014c52d9a16c3772f8580ac61b","public":"375cf44101e7d77699da6b8d7e633f507eaa82720d4d3cea1c0db85447975fa3","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"BAahtRKP0WL8luCz9m6TydiQtWUfoIWvkRlg2tatPVOCAwYrO8Dw3DZMgeTGjaehohfAmVyZ6SneuTQF3Ho+EUIAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzpHJCeyhgMaqIsPgWO635BaIwmRU4cfe9aA6gGqGI7SY=","why":"unsupported version 4"},{"secret":"b46bd96a998b00b55e48ad76c1fa0c68bc64b94174a189983b689fc05a0cec52","public":"797b06ba5dd8ca23a8c8cae4e9ee8963b25d9bf92618fa0b62db1ddc7b611453","kind":1,"scope_hex":"ef8080","ciphertext":"","why":"empty payload"},{"secret":"42602869f3d35e0bb04f72e3053d8de9cccf1e78dd6926c9311134784a5e70d6","public":"94a4ac3a4bf998dc64ab07cbb573ecb045e028f9b19c88f02af8f73d334ba0bd","kind":1,"scope_hex":"efbbbfefbfbe","ciphertext":"Aw==","why":"payload only has 1 byte"},{"secret":"d2dccc683567cd0cc6d9ec907703ddb362ecb61ef8e6c8ebb7411a293230935a","public":"294da03d650400e766953c9fb78600b788598a35e47b9755a891802de76f7a09","kind":1,"scope_hex":"ef8080","ciphertext":"A6oBqSSHPckKYt8Doymo2s1ku7LJxSNSfSuQdBoXaRe8q+5FQmvwbejIzJEaVKdUhbykNt5VFxno+sZtreNhrHgAAAABAAAVCO+AgAnTQMJrGJX7muna+wwIyM82vR398H+fhL6XxOam03jQErUC9W+klrNflk6oJ4mmyO88x6FJcf6n6LfDpGjMogNuMxoR1crWfknPMJuHggEUfOU6AjN7CgGiFPdnfcgbUPP487vxX9iw7U8WhQCfnh46vQTdwCDIm0C3aUp2/fJ0xNTVIZkFVKV1CyvyFpVicY9Zc7fmeEIDAsJvM1beK9sWqp9CI/sMU9OXmTfjdugSuisDRevchLkr6h5kB/rXDw==","why":"scope length out-of-bounds"},{"secret":"e1ef663aeb335452c9670d8a9f1f75cae5077f216314e9b49761610b4eb98538","public":"b729446e5cdbd2e4ac7967b056c17d5e4735035f2d2cf829722a0a85ca1fb6cb","kind":1,"scope_hex":"efbbbfefbfbe","ciphertext":"A/uzxqp0UwE6j7p8PIRKJDa0ah39GGyMbM0fOivlqESqbfFnp5OD2FSHR9TOTeJwiAfLXcXkoZPwiNKjB4ZgXV4AAAABAAAABu+7v++/vm7l8A==","why":"ciphertext too short"},{"secret":"327ffef01143a4dae30e201add671183424b39b1f33f64d78c19c22d3a7e790c","public":"039f6ce0144af03f0f3caf8a070a6a36519e2942286c2295a23785b0668ea621","kind":30078,"scope_hex":"737065632e6e6f7374722e6c616e642f6e697034347633","ciphertext":"A5jnLthci6SRC9V9Ak/AKGyB7xAGPLGZx+fW9wjfvOKQuug5cUUGX4R0mmxFHl5/TtcQ4syIiTtgXL3uVveIP3MAAHV+AAAAF3NwZWMubm9zdHIubGFuZC9uaXA0NHYzS3rEqFHqpL5Yqh/xY+a9i0XAyY960LDSfzQjSZh4UHzbuxmMEk92jAczsFkI9cWqd+xzahX59yD9l+UnCw3o9yXmzZIaA6UYPFI20f2VnH+G6F0Zt917fgt0bJwR3QUwblT63eOKLJGYhXqC11dweuKORW6oGJagRFo7P8r3UIFTHPkL5xMhUtZS7TS7GDKTB7kmEp5trwfzboiWxzp12LSlkUU9Nctyf6KE4iEQbk2jDndbC9npCn1rFpsFiHsd!","why":"invalid base64 (trailing)"},{"secret":"53d492157f17e6804bacdef3942fbb220a7239aab0e6bd6355eb3ff989ea0076","public":"ad2e1f00a4d5985810072cea336b0670f8e924368bca5b15c84ba8f3d7cae478","kind":1,"scope_hex":"e381afe4b896e7958c","ciphertext":"A3oG29gbEA%8QXjVLA5JeYOl1Hj5bJVaNcl2tAnfEHm5pzS0V+3eF8Tns8+A+TkfxrSc3DuAbkxc9SgWC+214cBIAAAABAAAACeOBr+S4lueVjGfB4CLk22vLao5NE6OH5KlgzSy++iyD7FZEmAkCVOfQkrnbj9kzyLF7HRygI5E2FJdeQkX6WDiHtwzP/UWwd+cnMaXTYS7vL0Zh6Lvz/PKicCecxB0NvkAdYM3hOpodhXEYd2nano+37mU1Cahp2uwyygJQTb427cHBucQiVpIadVoKqMeIA7EGvO9HTgTxgE93vyT26NqZFO9aniV1bFc7y9nq1OYHFfNQgzdxVMTQ88SwMbq2TSpU5uJc/cphNA==","why":"invalid base64 (middle)"},{"secret":"d4db7f6dcf6a45843739a806876a9da849f75f7a36702e7b4f7a10a986bf76cd","public":"0377961328c3bb0db459cd22033d7a7ca1e29d7f42fd3f1b038530a2402879c8","kind":1,"scope_hex":"","ciphertext":"Ay1pBSibePLV49S4vfkgB4GCHR0Xywd7acm1WoC1ZaX6Jg38sM0PQAshZtniNKpUjQWZGw4e7kSKEgFIGhT6SxQAAAADAAAAABuabdmj5F6vlFssb3CHu/ndTMpdcPSWXklapkGwxJRS","why":"context mismatch (kind)"},{"secret":"b00e9f068deb4b69c474109502839c981bd429075eeab9e5f41db9022c0cd869","public":"6de2d6a91eb75f5e6038d633da8695f35fad807d5bad6b9e25ae8f526e10c05f","kind":1,"scope_hex":"68656c6c6f20776f726c6421","ciphertext":"A49dkIXX4dVAn6A9ql4cQ3MQfoU7rPrsg9/8V8d5NL9+A7Ntb9VIbBQ4V2ORFXS5rzOkHhZkKmtnn3dpMUiQWwsAACcQAAAADGhlbGxvIHdvcmxkIRb3rRdfIPuJvtEnjn6dj7RgKg1OUvGmCQoXmp+32EN6XL+vEHnbIbvLWLqIV7eCAmOqrPVGngCJEppHzzFMuhM=","why":"context mismatch (kind)"},{"secret":"e150f3f5fd2eb47c49e8c1ee0ca51d3502d370108a98519d212731746fc513c2","public":"901f54e63d0d1df5bf120e12faf00d6e4ec3c6d9fe81e0dc0f35cf1d5a489ac2","kind":30078,"scope_hex":"6170706c69636174696f6e2d64617461","ciphertext":"A/JaJhlnuKYJhr6LdZ46lkK7cw0nxGvA4rp112e70q0O9jMnXxaWqqNE7nZnllwl7yuGWRtcLU2q6uWAUZ6wthIAAHV+AAAAD2luY29ycmVjdC1zY29wZZ++z1BEvaKntWN9G+9EIT0da0luVAV/hAvOoUg90pXE4C6nsAKmpZ3Q2YfAvtUDlkMpxPv4u10Rlz0VGlPo9GtcGJp4X2aq/5gdbTZJF8mxnkhZ4zQqwRibV0JJ0ZNZxg==","why":"context mismatch (scope)"},{"secret":"1c9c9ff5df8a9ff99e50b3dac27d987422567e9122075097edea2915e12580ca","public":"32178882654a70441f1c507902ae3a89888ecd2266930a45f8d6b2f578643307","kind":4,"scope_hex":"efbbbf","ciphertext":"A3c7VODzMr9mQXQNRtw3MQsntesGokh3g8nQwdAK4iWqL/nV6HPOhnz5xFf1UjyvTrHJC8BrGjRefguMrJLrfy8AAAAEAAAAD2luY29ycmVjdC1zY29wZfvq9zBo8LQrHyulrPg0swuPZs4W3Xy1TSQlmczZ643aOllm+9DveIcqoXoQaGQTs1RDLeekOMNquv9a5XMWZ431ysJ44L3ET4Ztw5Eevnxx3pgaob8bCikyuGT+5CyR2A==","why":"context mismatch (scope)"},{"secret":"18a8c52a7d94c36bf08ec04336247ab2c67014b964a3e33f3d6677e697f2008c","public":"d1069a731110484f212fa9fe2fa4dcd2e2c0857b5e0dda1bd5667901ce303d81","kind":4,"scope_hex":"ff","ciphertext":"A3PSjybYp19qos4LlMKEdlPQShJIBOJBGjjOI6etumpU4VaN0LYMB8qECxbwF7ebuv2Lxu5h0yXtNpdJtX4Z5fgAAAAEAAAAAf+AeTttkffcDMHUCDRxKYA3p7nnmK2hNvB04X0VP2H27Q==","why":"invalid scope (not valid utf8)"}]}</script>
<!-- switch_relays -->
<div class="method" data-method="switch_relays">
<div class="method-head">
<span class="name">switch_relays</span>
<span class="desc">signer returns its preferred relay set</span>
</div>
<div class="method-body">
<p class="hint">Per spec, clients should call this after connecting. Signer responds with an array of relay URLs (or null).</p>
<div class="btn-row">
<button data-call="switch_relays">request relay list</button>
</div>
<div class="result" id="r-switch_relays"></div>
</div>
</div>
<!-- logout -->
<div class="method" data-method="logout">
<div class="method-head">
<span class="name">logout</span>
<span class="desc">end the session · expects "ack"</span>
</div>
<div class="method-body">
<p class="hint">Courtesy hint to the signer that the session is over. The signer should ack, then drop the session (a new connect is required to re-establish). The local client-keypair is deleted regardless of whether the request is acknowledged.</p>
<div class="btn-row">
<button class="danger" data-call="logout">logout</button>
</div>
<div class="result" id="r-logout"></div>
</div>
</div>
<!-- raw -->
<div class="method" data-method="raw">
<div class="method-head">
<span class="name">raw</span>
<span class="desc">send arbitrary method · for testing extensions</span>
</div>
<div class="method-body">
<label>Method name</label>
<input id="raw-method" placeholder="e.g. create_account" />
<label>Params (JSON array of strings)</label>
<textarea id="raw-params">[]</textarea>
<div class="btn-row">