+53
.gitignore
+53
.gitignore
···
1
+
# If you prefer the allow list template instead of the deny list, see community template:
2
+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3
+
#
4
+
# Binaries for programs and plugins
5
+
*.exe
6
+
*.exe~
7
+
*.dll
8
+
*.so
9
+
*.dylib
10
+
11
+
# Test binary, built with `go test -c`
12
+
*.test
13
+
14
+
# Code coverage profiles and other test artifacts
15
+
*.out
16
+
coverage.*
17
+
*.coverprofile
18
+
profile.cov
19
+
20
+
# Dependency directories (remove the comment below to include it)
21
+
# vendor/
22
+
23
+
# Go workspace file
24
+
go.work
25
+
go.work.sum
26
+
27
+
# env file
28
+
.env
29
+
.envrc
30
+
31
+
# IntelliJ related
32
+
*.iml
33
+
*.ipr
34
+
*.iws
35
+
.idea/
36
+
37
+
# Editor/IDE
38
+
.idea/
39
+
.vscode/
40
+
41
+
# Miscellaneous
42
+
*.class
43
+
*.log
44
+
*.pyc
45
+
*.swp
46
+
.DS_Store
47
+
.atom/
48
+
.build/
49
+
.buildlog/
50
+
.history
51
+
.svn/
52
+
.swiftpm/
53
+
migrate_working_dir/
+8
api/api.go
+8
api/api.go
···
1
+
//go:generate go run ../gen
2
+
//go:generate lexgen --build-file lexicons.json ../lexicons
3
+
4
+
// NOTE: generating a new lexicon for the first time requires a bit of a dance
5
+
// to comment the generated code requiring MarshalCBOR:
6
+
// https://github.com/bluesky-social/indigo/pull/716
7
+
8
+
package api
+75
api/atyo/atyoping.go
+75
api/atyo/atyoping.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package atyo
4
+
5
+
// schema: app.atyo.ping
6
+
7
+
import (
8
+
"encoding/json"
9
+
"fmt"
10
+
11
+
"github.com/bluesky-social/indigo/lex/util"
12
+
)
13
+
14
+
func init() {
15
+
util.RegisterType("app.atyo.ping", &Ping{})
16
+
} //
17
+
// RECORDTYPE: Ping
18
+
type Ping struct {
19
+
LexiconTypeID string `json:"$type,const=app.atyo.ping" cborgen:"$type,const=app.atyo.ping"`
20
+
// contents: A message encrypted for a specific recipient, possibly including an encrypted payload. After decryption, this will deserialize from CBOR / JSON as `app.atyo.ping#contents`.
21
+
Contents util.LexBytes `json:"contents,omitempty" cborgen:"contents,omitempty"`
22
+
// createdAt: The time of record creation.
23
+
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
24
+
// nonce: Random number used to encrypt the message contents
25
+
Nonce util.LexBytes `json:"nonce,omitempty" cborgen:"nonce,omitempty"`
26
+
// pubKey: One-time key used to encrypt the message contents
27
+
PubKey util.LexBytes `json:"pubKey,omitempty" cborgen:"pubKey,omitempty"`
28
+
// targets: The one-time private key to decrypt `contents`, which has been encrypted for each recipient.
29
+
Targets util.LexBytes `json:"targets,omitempty" cborgen:"targets,omitempty"`
30
+
}
31
+
32
+
// Ping_Contents is a "contents" in the app.atyo.ping schema.
33
+
//
34
+
// A message intended for another user.
35
+
type Ping_Contents struct {
36
+
Ping_Empty *Ping_Empty
37
+
}
38
+
39
+
func (t *Ping_Contents) MarshalJSON() ([]byte, error) {
40
+
if t.Ping_Empty != nil {
41
+
t.Ping_Empty.LexiconTypeID = "app.atyo.ping#empty"
42
+
return json.Marshal(t.Ping_Empty)
43
+
}
44
+
return nil, fmt.Errorf("cannot marshal empty enum")
45
+
}
46
+
func (t *Ping_Contents) UnmarshalJSON(b []byte) error {
47
+
typ, err := util.TypeExtract(b)
48
+
if err != nil {
49
+
return err
50
+
}
51
+
52
+
switch typ {
53
+
case "app.atyo.ping#empty":
54
+
t.Ping_Empty = new(Ping_Empty)
55
+
return json.Unmarshal(b, t.Ping_Empty)
56
+
57
+
default:
58
+
return nil
59
+
}
60
+
}
61
+
62
+
// Ping_Empty is a "empty" in the app.atyo.ping schema.
63
+
//
64
+
// # An empty ping
65
+
//
66
+
// RECORDTYPE: Ping_Empty
67
+
type Ping_Empty struct {
68
+
LexiconTypeID string `json:"$type,const=app.atyo.ping#empty" cborgen:"$type,const=app.atyo.ping#empty"`
69
+
}
70
+
71
+
// Ping_Location is a "location" in the app.atyo.ping schema.
72
+
//
73
+
// TODO: a ping marked with a location, i.e. @yo
74
+
type Ping_Location struct {
75
+
}
+535
api/atyo/cbor_gen.go
+535
api/atyo/cbor_gen.go
···
1
+
// Code generated by github.com/whyrusleeping/cbor-gen. DO NOT EDIT.
2
+
3
+
package atyo
4
+
5
+
import (
6
+
"fmt"
7
+
"io"
8
+
"math"
9
+
"sort"
10
+
11
+
cid "github.com/ipfs/go-cid"
12
+
cbg "github.com/whyrusleeping/cbor-gen"
13
+
xerrors "golang.org/x/xerrors"
14
+
)
15
+
16
+
var _ = xerrors.Errorf
17
+
var _ = cid.Undef
18
+
var _ = math.E
19
+
var _ = sort.Sort
20
+
21
+
func (t *GraphFriend) MarshalCBOR(w io.Writer) error {
22
+
if t == nil {
23
+
_, err := w.Write(cbg.CborNull)
24
+
return err
25
+
}
26
+
27
+
cw := cbg.NewCborWriter(w)
28
+
29
+
if _, err := cw.Write([]byte{163}); err != nil {
30
+
return err
31
+
}
32
+
33
+
// t.LexiconTypeID (string) (string)
34
+
if len("$type") > 1000000 {
35
+
return xerrors.Errorf("Value in field \"$type\" was too long")
36
+
}
37
+
38
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("$type"))); err != nil {
39
+
return err
40
+
}
41
+
if _, err := cw.WriteString(string("$type")); err != nil {
42
+
return err
43
+
}
44
+
45
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("app.atyo.graph.friend"))); err != nil {
46
+
return err
47
+
}
48
+
if _, err := cw.WriteString(string("app.atyo.graph.friend")); err != nil {
49
+
return err
50
+
}
51
+
52
+
// t.Subject (string) (string)
53
+
if len("subject") > 1000000 {
54
+
return xerrors.Errorf("Value in field \"subject\" was too long")
55
+
}
56
+
57
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("subject"))); err != nil {
58
+
return err
59
+
}
60
+
if _, err := cw.WriteString(string("subject")); err != nil {
61
+
return err
62
+
}
63
+
64
+
if len(t.Subject) > 1000000 {
65
+
return xerrors.Errorf("Value in field t.Subject was too long")
66
+
}
67
+
68
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Subject))); err != nil {
69
+
return err
70
+
}
71
+
if _, err := cw.WriteString(string(t.Subject)); err != nil {
72
+
return err
73
+
}
74
+
75
+
// t.CreatedAt (string) (string)
76
+
if len("createdAt") > 1000000 {
77
+
return xerrors.Errorf("Value in field \"createdAt\" was too long")
78
+
}
79
+
80
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdAt"))); err != nil {
81
+
return err
82
+
}
83
+
if _, err := cw.WriteString(string("createdAt")); err != nil {
84
+
return err
85
+
}
86
+
87
+
if len(t.CreatedAt) > 1000000 {
88
+
return xerrors.Errorf("Value in field t.CreatedAt was too long")
89
+
}
90
+
91
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.CreatedAt))); err != nil {
92
+
return err
93
+
}
94
+
if _, err := cw.WriteString(string(t.CreatedAt)); err != nil {
95
+
return err
96
+
}
97
+
return nil
98
+
}
99
+
100
+
func (t *GraphFriend) UnmarshalCBOR(r io.Reader) (err error) {
101
+
*t = GraphFriend{}
102
+
103
+
cr := cbg.NewCborReader(r)
104
+
105
+
maj, extra, err := cr.ReadHeader()
106
+
if err != nil {
107
+
return err
108
+
}
109
+
defer func() {
110
+
if err == io.EOF {
111
+
err = io.ErrUnexpectedEOF
112
+
}
113
+
}()
114
+
115
+
if maj != cbg.MajMap {
116
+
return fmt.Errorf("cbor input should be of type map")
117
+
}
118
+
119
+
if extra > cbg.MaxLength {
120
+
return fmt.Errorf("GraphFriend: map struct too large (%d)", extra)
121
+
}
122
+
123
+
n := extra
124
+
125
+
nameBuf := make([]byte, 9)
126
+
for i := uint64(0); i < n; i++ {
127
+
nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000)
128
+
if err != nil {
129
+
return err
130
+
}
131
+
132
+
if !ok {
133
+
// Field doesn't exist on this type, so ignore it
134
+
if err := cbg.ScanForLinks(cr, func(cid.Cid) {}); err != nil {
135
+
return err
136
+
}
137
+
continue
138
+
}
139
+
140
+
switch string(nameBuf[:nameLen]) {
141
+
// t.LexiconTypeID (string) (string)
142
+
case "$type":
143
+
144
+
{
145
+
sval, err := cbg.ReadStringWithMax(cr, 1000000)
146
+
if err != nil {
147
+
return err
148
+
}
149
+
150
+
t.LexiconTypeID = string(sval)
151
+
}
152
+
// t.Subject (string) (string)
153
+
case "subject":
154
+
155
+
{
156
+
sval, err := cbg.ReadStringWithMax(cr, 1000000)
157
+
if err != nil {
158
+
return err
159
+
}
160
+
161
+
t.Subject = string(sval)
162
+
}
163
+
// t.CreatedAt (string) (string)
164
+
case "createdAt":
165
+
166
+
{
167
+
sval, err := cbg.ReadStringWithMax(cr, 1000000)
168
+
if err != nil {
169
+
return err
170
+
}
171
+
172
+
t.CreatedAt = string(sval)
173
+
}
174
+
175
+
default:
176
+
// Field doesn't exist on this type, so ignore it
177
+
if err := cbg.ScanForLinks(r, func(cid.Cid) {}); err != nil {
178
+
return err
179
+
}
180
+
}
181
+
}
182
+
183
+
return nil
184
+
}
185
+
func (t *Ping) MarshalCBOR(w io.Writer) error {
186
+
if t == nil {
187
+
_, err := w.Write(cbg.CborNull)
188
+
return err
189
+
}
190
+
191
+
cw := cbg.NewCborWriter(w)
192
+
fieldCount := 6
193
+
194
+
if t.Contents == nil {
195
+
fieldCount--
196
+
}
197
+
198
+
if t.Nonce == nil {
199
+
fieldCount--
200
+
}
201
+
202
+
if t.PubKey == nil {
203
+
fieldCount--
204
+
}
205
+
206
+
if t.Targets == nil {
207
+
fieldCount--
208
+
}
209
+
210
+
if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
211
+
return err
212
+
}
213
+
214
+
// t.LexiconTypeID (string) (string)
215
+
if len("$type") > 1000000 {
216
+
return xerrors.Errorf("Value in field \"$type\" was too long")
217
+
}
218
+
219
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("$type"))); err != nil {
220
+
return err
221
+
}
222
+
if _, err := cw.WriteString(string("$type")); err != nil {
223
+
return err
224
+
}
225
+
226
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("app.atyo.ping"))); err != nil {
227
+
return err
228
+
}
229
+
if _, err := cw.WriteString(string("app.atyo.ping")); err != nil {
230
+
return err
231
+
}
232
+
233
+
// t.Nonce (util.LexBytes) (slice)
234
+
if t.Nonce != nil {
235
+
236
+
if len("nonce") > 1000000 {
237
+
return xerrors.Errorf("Value in field \"nonce\" was too long")
238
+
}
239
+
240
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("nonce"))); err != nil {
241
+
return err
242
+
}
243
+
if _, err := cw.WriteString(string("nonce")); err != nil {
244
+
return err
245
+
}
246
+
247
+
if len(t.Nonce) > 2097152 {
248
+
return xerrors.Errorf("Byte array in field t.Nonce was too long")
249
+
}
250
+
251
+
if err := cw.WriteMajorTypeHeader(cbg.MajByteString, uint64(len(t.Nonce))); err != nil {
252
+
return err
253
+
}
254
+
255
+
if _, err := cw.Write(t.Nonce); err != nil {
256
+
return err
257
+
}
258
+
259
+
}
260
+
261
+
// t.PubKey (util.LexBytes) (slice)
262
+
if t.PubKey != nil {
263
+
264
+
if len("pubKey") > 1000000 {
265
+
return xerrors.Errorf("Value in field \"pubKey\" was too long")
266
+
}
267
+
268
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("pubKey"))); err != nil {
269
+
return err
270
+
}
271
+
if _, err := cw.WriteString(string("pubKey")); err != nil {
272
+
return err
273
+
}
274
+
275
+
if len(t.PubKey) > 2097152 {
276
+
return xerrors.Errorf("Byte array in field t.PubKey was too long")
277
+
}
278
+
279
+
if err := cw.WriteMajorTypeHeader(cbg.MajByteString, uint64(len(t.PubKey))); err != nil {
280
+
return err
281
+
}
282
+
283
+
if _, err := cw.Write(t.PubKey); err != nil {
284
+
return err
285
+
}
286
+
287
+
}
288
+
289
+
// t.Targets (util.LexBytes) (slice)
290
+
if t.Targets != nil {
291
+
292
+
if len("targets") > 1000000 {
293
+
return xerrors.Errorf("Value in field \"targets\" was too long")
294
+
}
295
+
296
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("targets"))); err != nil {
297
+
return err
298
+
}
299
+
if _, err := cw.WriteString(string("targets")); err != nil {
300
+
return err
301
+
}
302
+
303
+
if len(t.Targets) > 2097152 {
304
+
return xerrors.Errorf("Byte array in field t.Targets was too long")
305
+
}
306
+
307
+
if err := cw.WriteMajorTypeHeader(cbg.MajByteString, uint64(len(t.Targets))); err != nil {
308
+
return err
309
+
}
310
+
311
+
if _, err := cw.Write(t.Targets); err != nil {
312
+
return err
313
+
}
314
+
315
+
}
316
+
317
+
// t.Contents (util.LexBytes) (slice)
318
+
if t.Contents != nil {
319
+
320
+
if len("contents") > 1000000 {
321
+
return xerrors.Errorf("Value in field \"contents\" was too long")
322
+
}
323
+
324
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("contents"))); err != nil {
325
+
return err
326
+
}
327
+
if _, err := cw.WriteString(string("contents")); err != nil {
328
+
return err
329
+
}
330
+
331
+
if len(t.Contents) > 2097152 {
332
+
return xerrors.Errorf("Byte array in field t.Contents was too long")
333
+
}
334
+
335
+
if err := cw.WriteMajorTypeHeader(cbg.MajByteString, uint64(len(t.Contents))); err != nil {
336
+
return err
337
+
}
338
+
339
+
if _, err := cw.Write(t.Contents); err != nil {
340
+
return err
341
+
}
342
+
343
+
}
344
+
345
+
// t.CreatedAt (string) (string)
346
+
if len("createdAt") > 1000000 {
347
+
return xerrors.Errorf("Value in field \"createdAt\" was too long")
348
+
}
349
+
350
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdAt"))); err != nil {
351
+
return err
352
+
}
353
+
if _, err := cw.WriteString(string("createdAt")); err != nil {
354
+
return err
355
+
}
356
+
357
+
if len(t.CreatedAt) > 1000000 {
358
+
return xerrors.Errorf("Value in field t.CreatedAt was too long")
359
+
}
360
+
361
+
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.CreatedAt))); err != nil {
362
+
return err
363
+
}
364
+
if _, err := cw.WriteString(string(t.CreatedAt)); err != nil {
365
+
return err
366
+
}
367
+
return nil
368
+
}
369
+
370
+
func (t *Ping) UnmarshalCBOR(r io.Reader) (err error) {
371
+
*t = Ping{}
372
+
373
+
cr := cbg.NewCborReader(r)
374
+
375
+
maj, extra, err := cr.ReadHeader()
376
+
if err != nil {
377
+
return err
378
+
}
379
+
defer func() {
380
+
if err == io.EOF {
381
+
err = io.ErrUnexpectedEOF
382
+
}
383
+
}()
384
+
385
+
if maj != cbg.MajMap {
386
+
return fmt.Errorf("cbor input should be of type map")
387
+
}
388
+
389
+
if extra > cbg.MaxLength {
390
+
return fmt.Errorf("Ping: map struct too large (%d)", extra)
391
+
}
392
+
393
+
n := extra
394
+
395
+
nameBuf := make([]byte, 9)
396
+
for i := uint64(0); i < n; i++ {
397
+
nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000)
398
+
if err != nil {
399
+
return err
400
+
}
401
+
402
+
if !ok {
403
+
// Field doesn't exist on this type, so ignore it
404
+
if err := cbg.ScanForLinks(cr, func(cid.Cid) {}); err != nil {
405
+
return err
406
+
}
407
+
continue
408
+
}
409
+
410
+
switch string(nameBuf[:nameLen]) {
411
+
// t.LexiconTypeID (string) (string)
412
+
case "$type":
413
+
414
+
{
415
+
sval, err := cbg.ReadStringWithMax(cr, 1000000)
416
+
if err != nil {
417
+
return err
418
+
}
419
+
420
+
t.LexiconTypeID = string(sval)
421
+
}
422
+
// t.Nonce (util.LexBytes) (slice)
423
+
case "nonce":
424
+
425
+
maj, extra, err = cr.ReadHeader()
426
+
if err != nil {
427
+
return err
428
+
}
429
+
430
+
if extra > 2097152 {
431
+
return fmt.Errorf("t.Nonce: byte array too large (%d)", extra)
432
+
}
433
+
if maj != cbg.MajByteString {
434
+
return fmt.Errorf("expected byte array")
435
+
}
436
+
437
+
if extra > 0 {
438
+
t.Nonce = make([]uint8, extra)
439
+
}
440
+
441
+
if _, err := io.ReadFull(cr, t.Nonce); err != nil {
442
+
return err
443
+
}
444
+
445
+
// t.PubKey (util.LexBytes) (slice)
446
+
case "pubKey":
447
+
448
+
maj, extra, err = cr.ReadHeader()
449
+
if err != nil {
450
+
return err
451
+
}
452
+
453
+
if extra > 2097152 {
454
+
return fmt.Errorf("t.PubKey: byte array too large (%d)", extra)
455
+
}
456
+
if maj != cbg.MajByteString {
457
+
return fmt.Errorf("expected byte array")
458
+
}
459
+
460
+
if extra > 0 {
461
+
t.PubKey = make([]uint8, extra)
462
+
}
463
+
464
+
if _, err := io.ReadFull(cr, t.PubKey); err != nil {
465
+
return err
466
+
}
467
+
468
+
// t.Targets (util.LexBytes) (slice)
469
+
case "targets":
470
+
471
+
maj, extra, err = cr.ReadHeader()
472
+
if err != nil {
473
+
return err
474
+
}
475
+
476
+
if extra > 2097152 {
477
+
return fmt.Errorf("t.Targets: byte array too large (%d)", extra)
478
+
}
479
+
if maj != cbg.MajByteString {
480
+
return fmt.Errorf("expected byte array")
481
+
}
482
+
483
+
if extra > 0 {
484
+
t.Targets = make([]uint8, extra)
485
+
}
486
+
487
+
if _, err := io.ReadFull(cr, t.Targets); err != nil {
488
+
return err
489
+
}
490
+
491
+
// t.Contents (util.LexBytes) (slice)
492
+
case "contents":
493
+
494
+
maj, extra, err = cr.ReadHeader()
495
+
if err != nil {
496
+
return err
497
+
}
498
+
499
+
if extra > 2097152 {
500
+
return fmt.Errorf("t.Contents: byte array too large (%d)", extra)
501
+
}
502
+
if maj != cbg.MajByteString {
503
+
return fmt.Errorf("expected byte array")
504
+
}
505
+
506
+
if extra > 0 {
507
+
t.Contents = make([]uint8, extra)
508
+
}
509
+
510
+
if _, err := io.ReadFull(cr, t.Contents); err != nil {
511
+
return err
512
+
}
513
+
514
+
// t.CreatedAt (string) (string)
515
+
case "createdAt":
516
+
517
+
{
518
+
sval, err := cbg.ReadStringWithMax(cr, 1000000)
519
+
if err != nil {
520
+
return err
521
+
}
522
+
523
+
t.CreatedAt = string(sval)
524
+
}
525
+
526
+
default:
527
+
// Field doesn't exist on this type, so ignore it
528
+
if err := cbg.ScanForLinks(r, func(cid.Cid) {}); err != nil {
529
+
return err
530
+
}
531
+
}
532
+
}
533
+
534
+
return nil
535
+
}
+19
api/atyo/graphfriend.go
+19
api/atyo/graphfriend.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package atyo
4
+
5
+
// schema: app.atyo.graph.friend
6
+
7
+
import (
8
+
"github.com/bluesky-social/indigo/lex/util"
9
+
)
10
+
11
+
func init() {
12
+
util.RegisterType("app.atyo.graph.friend", &GraphFriend{})
13
+
} //
14
+
// RECORDTYPE: GraphFriend
15
+
type GraphFriend struct {
16
+
LexiconTypeID string `json:"$type,const=app.atyo.graph.friend" cborgen:"$type,const=app.atyo.graph.friend"`
17
+
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
18
+
Subject string `json:"subject" cborgen:"subject"`
19
+
}
+8
api/lexicons.json
+8
api/lexicons.json
+74
appview/oauth.go
+74
appview/oauth.go
···
1
+
package appview
2
+
3
+
import (
4
+
"encoding/json"
5
+
"fmt"
6
+
"net/http"
7
+
"net/url"
8
+
)
9
+
10
+
// https://atproto.com/specs/oauth#client-id-metadata-document
11
+
type clientMetadata struct {
12
+
ClientID string `json:"client_id"`
13
+
ClientName string `json:"client_name"`
14
+
SubjectType string `json:"subject_type"`
15
+
ClientURI string `json:"client_uri"`
16
+
RedirectURIs []string `json:"redirect_uris"`
17
+
GrantTypes []string `json:"grant_types"`
18
+
ResponseTypes []string `json:"response_types"`
19
+
ApplicationType string `json:"application_type"`
20
+
DpopBoundAccessTokens bool `json:"dpop_bound_access_tokens"`
21
+
JwksURI string `json:"jwks_uri"`
22
+
Scope string `json:"scope"`
23
+
TokenEndpointAuthMethod string `json:"token_endpoint_auth_method"`
24
+
TokenEndpointAuthSigningAlg string `json:"token_endpoint_auth_signing_alg"`
25
+
}
26
+
27
+
func newClientMetadata() clientMetadata {
28
+
makeRedirectURIs := func(c string) []string {
29
+
return []string{fmt.Sprintf("%s/oauth/callback", c)}
30
+
}
31
+
32
+
// TODO: configurable host
33
+
clientURI := fmt.Sprintf("http://127.0.0.1:3000")
34
+
redirectURIs := makeRedirectURIs(clientURI)
35
+
36
+
query := url.Values{}
37
+
query.Add("redirect_uri", redirectURIs[0])
38
+
query.Add("scope", "atproto transition:generic")
39
+
clientID := fmt.Sprintf("http://localhost?%s", query.Encode())
40
+
41
+
jwksURI := fmt.Sprintf("%s/oauth/jwks.json", clientURI)
42
+
43
+
return clientMetadata{
44
+
ClientID: clientID,
45
+
ClientName: "ATyo",
46
+
SubjectType: "public",
47
+
ClientURI: clientURI,
48
+
RedirectURIs: redirectURIs,
49
+
GrantTypes: []string{"authorization_code", "refresh_token"},
50
+
ResponseTypes: []string{"code"},
51
+
ApplicationType: "web",
52
+
DpopBoundAccessTokens: true,
53
+
JwksURI: jwksURI,
54
+
Scope: "atproto transition:generic",
55
+
TokenEndpointAuthMethod: "private_key_jwt",
56
+
TokenEndpointAuthSigningAlg: "ES256",
57
+
}
58
+
}
59
+
60
+
// Serve client metadata for OAuth.
61
+
func (*Server) handleOAuthMetadata(w http.ResponseWriter, req *http.Request) {
62
+
w.Header().Set("Content-Type", "application/json")
63
+
w.WriteHeader(http.StatusOK)
64
+
meta := newClientMetadata()
65
+
json.NewEncoder(w).Encode(meta)
66
+
}
67
+
68
+
func (*Server) handleJwks(w http.ResponseWriter, req *http.Request) {
69
+
// TODO
70
+
}
71
+
72
+
func (*Server) handleOAuthCallback(w http.ResponseWriter, req *http.Request) {
73
+
// TODO
74
+
}
+150
appview/router.go
+150
appview/router.go
···
1
+
package appview
2
+
3
+
import (
4
+
"crypto/rand"
5
+
"encoding/json"
6
+
"fmt"
7
+
"net/http"
8
+
"os"
9
+
"strings"
10
+
11
+
"atyo.app/api/atyo"
12
+
"github.com/bluesky-social/indigo/atproto/identity"
13
+
"github.com/bluesky-social/indigo/atproto/syntax"
14
+
"golang.org/x/crypto/nacl/box"
15
+
)
16
+
17
+
type Server struct {
18
+
directory *identity.BaseDirectory
19
+
}
20
+
21
+
func NewServer() *Server {
22
+
return &Server{
23
+
directory: &identity.BaseDirectory{},
24
+
}
25
+
}
26
+
27
+
func (r *Server) InitializeRoutes() *http.ServeMux {
28
+
mux := http.NewServeMux()
29
+
mux.HandleFunc("GET /", r.handleStatic)
30
+
31
+
mux.HandleFunc("POST /ping", r.handlePing)
32
+
33
+
mux.HandleFunc("GET /oauth/client-metadata.json", r.handleOAuthMetadata)
34
+
mux.HandleFunc("GET /oauth/jwks.json", r.handleJwks)
35
+
mux.HandleFunc("GET /oauth/callback", r.handleOAuthCallback)
36
+
return mux
37
+
}
38
+
39
+
// Static assets (i.e. the client application).
40
+
func (*Server) handleStatic(w http.ResponseWriter, req *http.Request) {
41
+
http.ServeFile(w, req, "public")
42
+
}
43
+
44
+
// Basic ping functionality.
45
+
// - `target` should be a DID or handle
46
+
func (s *Server) handlePing(w http.ResponseWriter, req *http.Request) {
47
+
targetStr := strings.TrimPrefix(req.PostFormValue("target"), "@")
48
+
fmt.Fprintln(os.Stderr, "got request for ping to `"+targetStr+"`")
49
+
50
+
target, err := syntax.ParseAtIdentifier(targetStr)
51
+
if err != nil {
52
+
w.WriteHeader(http.StatusBadRequest)
53
+
w.Write([]byte("Invalid target identity `" + targetStr + "`"))
54
+
return
55
+
}
56
+
57
+
targetId, err := s.directory.Lookup(req.Context(), *target)
58
+
if err != nil {
59
+
w.WriteHeader(http.StatusNotFound)
60
+
w.Write([]byte("Target `" + targetStr + "` not found"))
61
+
return
62
+
}
63
+
64
+
fmt.Fprintln(
65
+
os.Stderr,
66
+
"resolved to `"+targetId.Handle.String()+"` ("+targetId.DID.String()+")",
67
+
)
68
+
69
+
const nonceLen = 24
70
+
var nonce [nonceLen]byte
71
+
if len, err := rand.Read(nonce[:]); len != nonceLen || err != nil {
72
+
panic("rand.Read returned unexpected result")
73
+
}
74
+
75
+
sharedPubKey, sharedSecretKey, err := box.GenerateKey(rand.Reader)
76
+
if err != nil {
77
+
panic("failed to generate shared keypair")
78
+
}
79
+
80
+
// TODO: this is where e.g. geo contents would go
81
+
message := padMessage(nil)
82
+
83
+
targetPubkey, err := fetchUserPubKey(targetId)
84
+
if err != nil {
85
+
w.WriteHeader(http.StatusNotFound)
86
+
w.Write([]byte("Target `" + targetStr + "` does not have an atyo.app identity"))
87
+
return
88
+
}
89
+
90
+
encryptedMessage, err := box.SealAnonymous(nil, message, sharedPubKey, rand.Reader)
91
+
if err != nil {
92
+
w.WriteHeader(http.StatusInternalServerError)
93
+
w.Write([]byte("Failed to encrypt message payload"))
94
+
return
95
+
96
+
}
97
+
98
+
encSharedKey, err := box.SealAnonymous(nil, sharedSecretKey[:], &targetPubkey, rand.Reader)
99
+
if err != nil {
100
+
w.WriteHeader(http.StatusInternalServerError)
101
+
w.Write([]byte("Failed to encrypt shared secret for recipient"))
102
+
return
103
+
}
104
+
105
+
ping := atyo.Ping{
106
+
Contents: encryptedMessage,
107
+
CreatedAt: syntax.DatetimeNow().String(),
108
+
Nonce: nonce[:],
109
+
PubKey: sharedPubKey[:],
110
+
Targets: encSharedKey,
111
+
}
112
+
113
+
jsonPing, err := json.MarshalIndent(&ping, "", " ")
114
+
if err != nil {
115
+
w.WriteHeader(http.StatusInternalServerError)
116
+
w.Write([]byte("Failed to serialize ping: " + err.Error()))
117
+
return
118
+
}
119
+
120
+
fmt.Fprintln(os.Stderr, "would write ping to PDS: "+string(jsonPing))
121
+
// TODO write records to our PDS
122
+
}
123
+
124
+
// https://en.wikipedia.org/wiki/Padding_(cryptography)#ISO/IEC_7816-4
125
+
// Used since that's what libsodium uses: https://doc.libsodium.org/padding
126
+
func padMessage(msg []byte) []byte {
127
+
// round to next highest 1k (2^10)
128
+
mask := 10 - 1
129
+
length := (max(len(msg), 1) + mask) & ^mask
130
+
131
+
fmt.Println("len(msg)", len(msg), "length", length)
132
+
133
+
result := make([]byte, length)
134
+
copy(result, msg)
135
+
result[len(msg)] = 0x80
136
+
137
+
return result
138
+
}
139
+
140
+
// TODO: get pubkey from atproto profile; probably needs a new lexicon
141
+
// also maybe if there are multiple records we should do one for each?
142
+
func fetchUserPubKey(id *identity.Identity) (key [32]byte, err error) {
143
+
return
144
+
}
145
+
146
+
// TODO: load from local DB or something like that...
147
+
// There should probably be expiration dates associated with these too
148
+
func fetchPrivKey() (key [32]byte, err error) {
149
+
return
150
+
}
+19
cmd/appview/main.go
+19
cmd/appview/main.go
···
1
+
package main
2
+
3
+
import (
4
+
"fmt"
5
+
"net/http"
6
+
"os"
7
+
8
+
"atyo.app/appview"
9
+
)
10
+
11
+
func main() {
12
+
server := appview.NewServer()
13
+
mux := server.InitializeRoutes()
14
+
15
+
// TODO configurable listen address, TLS, etc
16
+
listenAddr := "127.0.0.1:3000"
17
+
fmt.Fprintln(os.Stderr, "Starting server on http://"+listenAddr)
18
+
http.ListenAndServe(listenAddr, mux)
19
+
}
+21
gen/main.go
+21
gen/main.go
···
1
+
package main
2
+
3
+
import (
4
+
"atyo.app/api/atyo"
5
+
cbg "github.com/whyrusleeping/cbor-gen"
6
+
)
7
+
8
+
func main() {
9
+
gen := cbg.Gen{
10
+
MaxStringLength: 1_000_000,
11
+
}
12
+
13
+
if err := gen.WriteMapEncodersToFile(
14
+
"atyo/cbor_gen.go",
15
+
"atyo",
16
+
atyo.GraphFriend{},
17
+
atyo.Ping{},
18
+
); err != nil {
19
+
panic(err)
20
+
}
21
+
}
+82
go.mod
+82
go.mod
···
1
+
module atyo.app
2
+
3
+
go 1.24.0
4
+
5
+
toolchain go1.24.4
6
+
7
+
require (
8
+
github.com/bluesky-social/indigo v0.0.0-20250621010046-488d1b91889b
9
+
github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e
10
+
tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250526154904-3906c5336421
11
+
)
12
+
13
+
require (
14
+
github.com/beorn7/perks v1.0.1 // indirect
15
+
github.com/carlmjohnson/versioninfo v0.22.5 // indirect
16
+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
17
+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
18
+
github.com/felixge/httpsnoop v1.0.4 // indirect
19
+
github.com/go-logr/logr v1.4.2 // indirect
20
+
github.com/go-logr/stdr v1.2.2 // indirect
21
+
github.com/goccy/go-json v0.10.2 // indirect
22
+
github.com/gogo/protobuf v1.3.2 // indirect
23
+
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
24
+
github.com/google/uuid v1.6.0 // indirect
25
+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
26
+
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
27
+
github.com/hashicorp/golang-lru v1.0.2 // indirect
28
+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
29
+
github.com/ipfs/bbloom v0.0.4 // indirect
30
+
github.com/ipfs/go-block-format v0.2.0 // indirect
31
+
github.com/ipfs/go-cid v0.4.1 // indirect
32
+
github.com/ipfs/go-datastore v0.6.0 // indirect
33
+
github.com/ipfs/go-ipfs-blockstore v1.3.1 // indirect
34
+
github.com/ipfs/go-ipfs-ds-help v1.1.1 // indirect
35
+
github.com/ipfs/go-ipfs-util v0.0.3 // indirect
36
+
github.com/ipfs/go-ipld-cbor v0.1.0 // indirect
37
+
github.com/ipfs/go-ipld-format v0.6.0 // indirect
38
+
github.com/ipfs/go-log v1.0.5 // indirect
39
+
github.com/ipfs/go-log/v2 v2.5.1 // indirect
40
+
github.com/ipfs/go-metrics-interface v0.0.1 // indirect
41
+
github.com/jbenet/goprocess v0.1.4 // indirect
42
+
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
43
+
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
44
+
github.com/lestrrat-go/httpcc v1.0.1 // indirect
45
+
github.com/lestrrat-go/httprc v1.0.4 // indirect
46
+
github.com/lestrrat-go/iter v1.0.2 // indirect
47
+
github.com/lestrrat-go/jwx/v2 v2.0.12 // indirect
48
+
github.com/lestrrat-go/option v1.0.1 // indirect
49
+
github.com/mattn/go-isatty v0.0.20 // indirect
50
+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
51
+
github.com/minio/sha256-simd v1.0.1 // indirect
52
+
github.com/mr-tron/base58 v1.2.0 // indirect
53
+
github.com/multiformats/go-base32 v0.1.0 // indirect
54
+
github.com/multiformats/go-base36 v0.2.0 // indirect
55
+
github.com/multiformats/go-multibase v0.2.0 // indirect
56
+
github.com/multiformats/go-multihash v0.2.3 // indirect
57
+
github.com/multiformats/go-varint v0.0.7 // indirect
58
+
github.com/opentracing/opentracing-go v1.2.0 // indirect
59
+
github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f // indirect
60
+
github.com/prometheus/client_golang v1.17.0 // indirect
61
+
github.com/prometheus/client_model v0.5.0 // indirect
62
+
github.com/prometheus/common v0.45.0 // indirect
63
+
github.com/prometheus/procfs v0.12.0 // indirect
64
+
github.com/rivo/uniseg v0.1.0 // indirect
65
+
github.com/segmentio/asm v1.2.0 // indirect
66
+
github.com/spaolacci/murmur3 v1.1.0 // indirect
67
+
gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b // indirect
68
+
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect
69
+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
70
+
go.opentelemetry.io/otel v1.29.0 // indirect
71
+
go.opentelemetry.io/otel/metric v1.29.0 // indirect
72
+
go.opentelemetry.io/otel/trace v1.29.0 // indirect
73
+
go.uber.org/atomic v1.11.0 // indirect
74
+
go.uber.org/multierr v1.11.0 // indirect
75
+
go.uber.org/zap v1.26.0 // indirect
76
+
golang.org/x/crypto v0.31.0 // indirect
77
+
golang.org/x/sys v0.28.0 // indirect
78
+
golang.org/x/time v0.8.0 // indirect
79
+
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
80
+
google.golang.org/protobuf v1.33.0 // indirect
81
+
lukechampine.com/blake3 v1.2.1 // indirect
82
+
)
+305
go.sum
+305
go.sum
···
1
+
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
2
+
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
3
+
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
4
+
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
5
+
github.com/bluesky-social/indigo v0.0.0-20250621010046-488d1b91889b h1:QniihTdfvYFr8oJZgltN0VyWSWa28v/0DiIVFHy6nfg=
6
+
github.com/bluesky-social/indigo v0.0.0-20250621010046-488d1b91889b/go.mod h1:8FlFpF5cIq3DQG0kEHqyTkPV/5MDQoaWLcVwza5ZPJU=
7
+
github.com/carlmjohnson/versioninfo v0.22.5 h1:O00sjOLUAFxYQjlN/bzYTuZiS0y6fWDQjMRvwtKgwwc=
8
+
github.com/carlmjohnson/versioninfo v0.22.5/go.mod h1:QT9mph3wcVfISUKd0i9sZfVrPviHuSF+cUtLjm2WSf8=
9
+
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
10
+
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
11
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
12
+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
13
+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
14
+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
15
+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
16
+
github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo=
17
+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs=
18
+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
19
+
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
20
+
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
21
+
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
22
+
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
23
+
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
24
+
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
25
+
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
26
+
github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0=
27
+
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
28
+
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
29
+
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
30
+
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
31
+
github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8=
32
+
github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
33
+
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
34
+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
35
+
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
36
+
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
37
+
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
38
+
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
39
+
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
40
+
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
41
+
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
42
+
github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI=
43
+
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
44
+
github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M=
45
+
github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
46
+
github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c=
47
+
github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
48
+
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
49
+
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
50
+
github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs=
51
+
github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0=
52
+
github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs=
53
+
github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM=
54
+
github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s=
55
+
github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk=
56
+
github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk=
57
+
github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8=
58
+
github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk=
59
+
github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps=
60
+
github.com/ipfs/go-ipfs-blockstore v1.3.1 h1:cEI9ci7V0sRNivqaOr0elDsamxXFxJMMMy7PTTDQNsQ=
61
+
github.com/ipfs/go-ipfs-blockstore v1.3.1/go.mod h1:KgtZyc9fq+P2xJUiCAzbRdhhqJHvsw8u2Dlqy2MyRTE=
62
+
github.com/ipfs/go-ipfs-ds-help v1.1.1 h1:B5UJOH52IbcfS56+Ul+sv8jnIV10lbjLF5eOO0C66Nw=
63
+
github.com/ipfs/go-ipfs-ds-help v1.1.1/go.mod h1:75vrVCkSdSFidJscs8n4W+77AtTpCIAdDGAwjitJMIo=
64
+
github.com/ipfs/go-ipfs-util v0.0.3 h1:2RFdGez6bu2ZlZdI+rWfIdbQb1KudQp3VGwPtdNCmE0=
65
+
github.com/ipfs/go-ipfs-util v0.0.3/go.mod h1:LHzG1a0Ig4G+iZ26UUOMjHd+lfM84LZCrn17xAKWBvs=
66
+
github.com/ipfs/go-ipld-cbor v0.1.0 h1:dx0nS0kILVivGhfWuB6dUpMa/LAwElHPw1yOGYopoYs=
67
+
github.com/ipfs/go-ipld-cbor v0.1.0/go.mod h1:U2aYlmVrJr2wsUBU67K4KgepApSZddGRDWBYR0H4sCk=
68
+
github.com/ipfs/go-ipld-format v0.6.0 h1:VEJlA2kQ3LqFSIm5Vu6eIlSxD/Ze90xtc4Meten1F5U=
69
+
github.com/ipfs/go-ipld-format v0.6.0/go.mod h1:g4QVMTn3marU3qXchwjpKPKgJv+zF+OlaKMyhJ4LHPg=
70
+
github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8=
71
+
github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo=
72
+
github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g=
73
+
github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY=
74
+
github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI=
75
+
github.com/ipfs/go-metrics-interface v0.0.1 h1:j+cpbjYvu4R8zbleSs36gvB7jR+wsL2fGD6n0jO4kdg=
76
+
github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY=
77
+
github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA=
78
+
github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o=
79
+
github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4=
80
+
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
81
+
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
82
+
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
83
+
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
84
+
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
85
+
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
86
+
github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM=
87
+
github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
88
+
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
89
+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
90
+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
91
+
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
92
+
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
93
+
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
94
+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
95
+
github.com/lestrrat-go/blackmagic v1.0.1/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU=
96
+
github.com/lestrrat-go/blackmagic v1.0.2 h1:Cg2gVSc9h7sz9NOByczrbUvLopQmXrfFx//N+AkAr5k=
97
+
github.com/lestrrat-go/blackmagic v1.0.2/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU=
98
+
github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=
99
+
github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E=
100
+
github.com/lestrrat-go/httprc v1.0.4 h1:bAZymwoZQb+Oq8MEbyipag7iSq6YIga8Wj6GOiJGdI8=
101
+
github.com/lestrrat-go/httprc v1.0.4/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo=
102
+
github.com/lestrrat-go/iter v1.0.2 h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI=
103
+
github.com/lestrrat-go/iter v1.0.2/go.mod h1:Momfcq3AnRlRjI5b5O8/G5/BvpzrhoFTZcn06fEOPt4=
104
+
github.com/lestrrat-go/jwx/v2 v2.0.12 h1:3d589+5w/b9b7S3DneICPW16AqTyYXB7VRjgluSDWeA=
105
+
github.com/lestrrat-go/jwx/v2 v2.0.12/go.mod h1:Mq4KN1mM7bp+5z/W5HS8aCNs5RKZ911G/0y2qUjAQuQ=
106
+
github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
107
+
github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU=
108
+
github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
109
+
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
110
+
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
111
+
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
112
+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg=
113
+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k=
114
+
github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM=
115
+
github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8=
116
+
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
117
+
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
118
+
github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE=
119
+
github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI=
120
+
github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0=
121
+
github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4=
122
+
github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g=
123
+
github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk=
124
+
github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U=
125
+
github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM=
126
+
github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8=
127
+
github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU=
128
+
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
129
+
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
130
+
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
131
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
132
+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
133
+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
134
+
github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f h1:VXTQfuJj9vKR4TCkEuWIckKvdHFeJH/huIFJ9/cXOB0=
135
+
github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw=
136
+
github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q=
137
+
github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY=
138
+
github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw=
139
+
github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI=
140
+
github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM=
141
+
github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY=
142
+
github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
143
+
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
144
+
github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY=
145
+
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
146
+
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
147
+
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
148
+
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
149
+
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
150
+
github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
151
+
github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
152
+
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
153
+
github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs=
154
+
github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
155
+
github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg=
156
+
github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM=
157
+
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
158
+
github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
159
+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
160
+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
161
+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
162
+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
163
+
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
164
+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
165
+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
166
+
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
167
+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
168
+
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
169
+
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
170
+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
171
+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
172
+
github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
173
+
github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ=
174
+
github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw=
175
+
github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e h1:28X54ciEwwUxyHn9yrZfl5ojgF4CBNLWX7LR0rvBkf4=
176
+
github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so=
177
+
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
178
+
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
179
+
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
180
+
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
181
+
gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b h1:CzigHMRySiX3drau9C6Q5CAbNIApmLdat5jPMqChvDA=
182
+
gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b/go.mod h1:/y/V339mxv2sZmYYR64O07VuCpdNZqCTwO8ZcouTMI8=
183
+
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 h1:qwDnMxjkyLmAFgcfgTnfJrmYKWhHnci3GjDqcZp1M3Q=
184
+
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02/go.mod h1:JTnUj0mpYiAsuZLmKjTx/ex3AtMowcCgnE7YNyCEP0I=
185
+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24=
186
+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo=
187
+
go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw=
188
+
go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8=
189
+
go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc=
190
+
go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8=
191
+
go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4=
192
+
go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ=
193
+
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
194
+
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
195
+
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
196
+
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
197
+
go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
198
+
go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk=
199
+
go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo=
200
+
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
201
+
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
202
+
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
203
+
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
204
+
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
205
+
go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ=
206
+
go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI=
207
+
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
208
+
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
209
+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
210
+
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
211
+
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
212
+
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
213
+
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
214
+
golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
215
+
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
216
+
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
217
+
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
218
+
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
219
+
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
220
+
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
221
+
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
222
+
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
223
+
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
224
+
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
225
+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
226
+
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
227
+
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
228
+
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
229
+
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
230
+
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
231
+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
232
+
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
233
+
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
234
+
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
235
+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
236
+
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
237
+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
238
+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
239
+
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
240
+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
241
+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
242
+
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
243
+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
244
+
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
245
+
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
246
+
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
247
+
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
248
+
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
249
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
250
+
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
251
+
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
252
+
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
253
+
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
254
+
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
255
+
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
256
+
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
257
+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
258
+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
259
+
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
260
+
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
261
+
golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
262
+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
263
+
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
264
+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
265
+
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
266
+
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
267
+
golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
268
+
golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg=
269
+
golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
270
+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
271
+
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
272
+
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
273
+
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
274
+
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
275
+
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
276
+
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
277
+
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
278
+
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
279
+
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
280
+
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
281
+
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
282
+
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
283
+
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
284
+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
285
+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
286
+
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU=
287
+
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90=
288
+
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
289
+
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
290
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
291
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
292
+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
293
+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
294
+
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
295
+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
296
+
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
297
+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
298
+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
299
+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
300
+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
301
+
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
302
+
lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI=
303
+
lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k=
304
+
tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250526154904-3906c5336421 h1:ZQNKE1HKWjfQBizxDb2XLhrJcgZqE0MLFIU1iggaF90=
305
+
tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250526154904-3906c5336421/go.mod h1:Wad0H70uyyY4qZryU/1Ic+QZyw41YxN5QfzNAEBaXkQ=
+19
lexicons/friend.json
+19
lexicons/friend.json
···
1
+
{
2
+
"lexicon": 1,
3
+
"id": "app.atyo.graph.friend",
4
+
"defs": {
5
+
"main": {
6
+
"type": "record",
7
+
"description": "Record declaring that a given identity is allowed to ping this user. The appview should only track ping records for friended users.",
8
+
"key": "tid",
9
+
"record": {
10
+
"type": "object",
11
+
"required": ["subject", "createdAt"],
12
+
"properties": {
13
+
"subject": { "type": "string", "format": "did" },
14
+
"createdAt": { "type": "string", "format": "datetime" }
15
+
}
16
+
}
17
+
}
18
+
}
19
+
}
+54
lexicons/ping.json
+54
lexicons/ping.json
···
1
+
{
2
+
"lexicon": 1,
3
+
"id": "app.atyo.ping",
4
+
"defs": {
5
+
"main": {
6
+
"type": "record",
7
+
"key": "tid",
8
+
"record": {
9
+
"type": "object",
10
+
"required": ["contents", "createdAt", "hash"],
11
+
"properties": {
12
+
"targets": {
13
+
"type": "bytes",
14
+
"description": "The one-time private key to decrypt `contents`, which has been encrypted for each recipient."
15
+
},
16
+
"contents": {
17
+
"type": "bytes",
18
+
"description": "A message encrypted for a specific recipient, possibly including an encrypted payload. After decryption, this will deserialize from CBOR / JSON as `app.atyo.ping#contents`."
19
+
},
20
+
"createdAt": {
21
+
"type": "string",
22
+
"format": "datetime",
23
+
"description": "The time of record creation."
24
+
},
25
+
"nonce": {
26
+
"type": "bytes",
27
+
"description": "Random number used to encrypt the message contents"
28
+
},
29
+
"pubKey": {
30
+
"type": "bytes",
31
+
"description": "One-time key used to encrypt the message contents"
32
+
}
33
+
}
34
+
}
35
+
},
36
+
"contents": {
37
+
"type": "union",
38
+
"description": "A message intended for another user.",
39
+
"refs": [
40
+
"#empty"
41
+
]
42
+
},
43
+
"empty": {
44
+
"type": "object",
45
+
"description": "An empty ping",
46
+
"properties": {}
47
+
},
48
+
"location": {
49
+
"type": "object",
50
+
"description": "TODO: a ping marked with a location, i.e. @yo",
51
+
"properties": {}
52
+
}
53
+
}
54
+
}
+19
public/index.html
+19
public/index.html
···
1
+
<!DOCTYPE html>
2
+
<html>
3
+
<head>
4
+
<title>ATyo</title>
5
+
<script type="text/javascript">
6
+
7
+
</script>
8
+
</head>
9
+
<body>
10
+
<h1>ATYo</h1>
11
+
<div>
12
+
<form action="/ping" method="POST">
13
+
<label for="target">Send yo to handle:</label><br>
14
+
<input type="text" id="target" name="target" placeholder="@alice.example.com"><br>
15
+
<input type="submit" value="Submit"">
16
+
</form>
17
+
</div>
18
+
</body>
19
+
</html>