tangled
alpha
login
or
join now
mackuba.eu
/
didkit
1
fork
atom
A library for handling DID identifiers used in Bluesky AT Protocol
1
fork
atom
overview
issues
pulls
pipelines
parse 'seq' in PLCOperation if included
mackuba.eu
2 months ago
f54e9239
c3e6935c
+2
-1
1 changed file
expand all
collapse all
unified
split
lib
didkit
plc_operation.rb
+2
-1
lib/didkit/plc_operation.rb
···
12
12
include AtHandles
13
13
include Services
14
14
15
15
-
attr_reader :json, :did, :cid, :created_at, :type, :handles, :services
15
15
+
attr_reader :json, :did, :cid, :seq, :created_at, :type, :handles, :services
16
16
17
17
def initialize(json)
18
18
@json = json
19
19
+
@seq = json['seq']
19
20
@did = json['did']
20
21
raise FormatError, "Missing DID: #{json}" if @did.nil?
21
22
raise FormatError, "Invalid DID: #{@did}" unless @did.is_a?(String) && @did.start_with?('did:')