···2323| ------------ | -------- | ----- | ---------------------------------------------------- | --------------------------------- |
2424| `signingKey` | `string` | ✅ | The did:key signing key for the stream. | Min Length: 57<br/>Max Length: 57 |
2525| `createdAt` | `string` | ✅ | Client-declared timestamp when this key was created. | Format: `datetime` |
2626+| `createdBy` | `string` | ❌ | The name of the client that created this key. | |
26272728---
2829···5152 "type": "string",
5253 "format": "datetime",
5354 "description": "Client-declared timestamp when this key was created."
5555+ },
5656+ "createdBy": {
5757+ "type": "string",
5858+ "description": "The name of the client that created this key."
5459 }
5560 }
5661 }
+4
lexicons/place/stream/key.json
···2020 "type": "string",
2121 "format": "datetime",
2222 "description": "Client-declared timestamp when this key was created."
2323+ },
2424+ "createdBy": {
2525+ "type": "string",
2626+ "description": "The name of the client that created this key."
2327 }
2428 }
2529 }
+59-1
pkg/streamplace/cbor_gen.go
···2828 }
29293030 cw := cbg.NewCborWriter(w)
3131+ fieldCount := 4
31323232- if _, err := cw.Write([]byte{163}); err != nil {
3333+ if t.CreatedBy == nil {
3434+ fieldCount--
3535+ }
3636+3737+ if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
3338 return err
3439 }
3540···7580 return err
7681 }
77828383+ // t.CreatedBy (string) (string)
8484+ if t.CreatedBy != nil {
8585+8686+ if len("createdBy") > 1000000 {
8787+ return xerrors.Errorf("Value in field \"createdBy\" was too long")
8888+ }
8989+9090+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdBy"))); err != nil {
9191+ return err
9292+ }
9393+ if _, err := cw.WriteString(string("createdBy")); err != nil {
9494+ return err
9595+ }
9696+9797+ if t.CreatedBy == nil {
9898+ if _, err := cw.Write(cbg.CborNull); err != nil {
9999+ return err
100100+ }
101101+ } else {
102102+ if len(*t.CreatedBy) > 1000000 {
103103+ return xerrors.Errorf("Value in field t.CreatedBy was too long")
104104+ }
105105+106106+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.CreatedBy))); err != nil {
107107+ return err
108108+ }
109109+ if _, err := cw.WriteString(string(*t.CreatedBy)); err != nil {
110110+ return err
111111+ }
112112+ }
113113+ }
114114+78115 // t.SigningKey (string) (string)
79116 if len("signingKey") > 1000000 {
80117 return xerrors.Errorf("Value in field \"signingKey\" was too long")
···162199 }
163200164201 t.CreatedAt = string(sval)
202202+ }
203203+ // t.CreatedBy (string) (string)
204204+ case "createdBy":
205205+206206+ {
207207+ b, err := cr.ReadByte()
208208+ if err != nil {
209209+ return err
210210+ }
211211+ if b != cbg.CborNull[0] {
212212+ if err := cr.UnreadByte(); err != nil {
213213+ return err
214214+ }
215215+216216+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
217217+ if err != nil {
218218+ return err
219219+ }
220220+221221+ t.CreatedBy = (*string)(&sval)
222222+ }
165223 }
166224 // t.SigningKey (string) (string)
167225 case "signingKey":
+2
pkg/streamplace/streamkey.go
···1616 LexiconTypeID string `json:"$type,const=place.stream.key" cborgen:"$type,const=place.stream.key"`
1717 // createdAt: Client-declared timestamp when this key was created.
1818 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
1919+ // createdBy: The name of the client that created this key.
2020+ CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"`
1921 // signingKey: The did:key signing key for the stream.
2022 SigningKey string `json:"signingKey" cborgen:"signingKey"`
2123}