@@ -201,8 +201,13 @@ class Serder:
201
201
Properties:
202
202
raw (bytes): of serialized event only
203
203
sad (dict): self addressed data dict
204
+ cvrsn (Versionage): CESR code table version (Major, Minor)
204
205
proto (str): Protocolage value as protocol identifier such as KERI, ACDC
205
- version (Versionage): protocol version (Major, Minor)
206
+ alias of .protocol
207
+ protocol (str): Protocolage value as protocol identifier such as KERI, ACDC
208
+ alias of .proto
209
+ vrsn (Versionage): protocol version (Major, Minor) alias of .version
210
+ version (Versionage): protocol version (Major, Minor) alias of .vrsn
206
211
kind (str): serialization kind coring.Serials such as JSON, CBOR, MGPK, CESR
207
212
size (int): number of bytes in serialization
208
213
said (str): qb64 said of .raw given by appropriate field
@@ -211,10 +216,11 @@ class Serder:
211
216
212
217
213
218
Hidden Attributes:
214
- ._raw is bytes of serialized event only
215
- ._sad is key event dict
219
+ ._raw (bytes): serialized message
220
+ ._sad (dict): sad dict (key event dict)
221
+ ._cvrsn (Versionage): CESR code table version
216
222
._proto (str): Protocolage value as protocol type identifier
217
- ._version is Versionage instance of event version
223
+ ._vrsn is Versionage instance of event version
218
224
._kind is serialization kind string value (see namedtuple coring.Serials)
219
225
supported kinds are 'json', 'cbor', 'msgpack', 'binary'
220
226
._size is int of number of bytes in serialed event only
@@ -1288,18 +1294,28 @@ def kind(self):
1288
1294
1289
1295
@property
1290
1296
def proto (self ):
1291
- """proto property getter
1297
+ """proto property getter, alias of .protocol
1292
1298
protocol identifier type value of Protocolage such as 'KERI' or 'ACDC'
1293
1299
1294
1300
Returns:
1295
1301
proto (str): Protocolage value as protocol type
1296
1302
"""
1297
1303
return self ._proto
1298
1304
1305
+ @property
1306
+ def protocol (self ):
1307
+ """protocp; property getter, alias of .proto
1308
+ protocol identifier type value of Protocolage such as 'KERI' or 'ACDC'
1309
+
1310
+ Returns:
1311
+ protocol (str): Protocolage value as protocol type
1312
+ """
1313
+ return self ._proto
1314
+
1299
1315
1300
1316
@property
1301
1317
def vrsn (self ):
1302
- """vrsn (version) property getter
1318
+ """vrsn (version) property getter, alias of .version
1303
1319
1304
1320
Returns:
1305
1321
vrsn (Versionage): instance of protocol version for this Serder
@@ -1308,7 +1324,7 @@ def vrsn(self):
1308
1324
1309
1325
@property
1310
1326
def version (self ):
1311
- """version property getter alias of .vrsn
1327
+ """version property getter, alias of .vrsn
1312
1328
1313
1329
Returns:
1314
1330
version (Versionage): instance of protocol version for this Serder
0 commit comments