File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const (
29
29
ATTEST AttestationType = "ATTEST"
30
30
ID AttestationType = "ID"
31
31
REVOKE AttestationType = "REVOKE"
32
+ ALIAS AttestationType = "ALIAS"
32
33
)
33
34
34
35
// CreateIdentity creates an identity from a private key, an id key, and a counter
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ type Bap struct {
15
15
Sequence uint64 `json:"sequence" bson:"sequence"`
16
16
Type AttestationType `json:"type,omitempty" bson:"type,omitempty"`
17
17
URNHash string `json:"urn_hash,omitempty" bson:"urn_hash,omitempty"`
18
+ Profile string `json:"profile,omitempty" bson:"profile,omitempty"`
18
19
}
19
20
20
21
// FromTape takes a bob.Tape and returns a BAP data structure
@@ -44,6 +45,9 @@ func (b *Bap) FromTape(tape *bpu.Tape) (err error) {
44
45
case ID :
45
46
b .Address = * tape .Cell [3 ].S
46
47
b .IDKey = * tape .Cell [2 ].S
48
+ case ALIAS :
49
+ b .IDKey = * tape .Cell [2 ].S
50
+ b .Profile = * tape .Cell [3 ].S
47
51
}
48
52
return
49
53
}
You can’t perform that action at this time.
0 commit comments