Skip to content

Commit 788281c

Browse files
authored
Sync with did resolver driver (#72)
* add stateContractAddress field to Vm
1 parent a90bb5e commit 788281c

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

verifiable/did_doc.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ type DeviceMetadata struct {
4949

5050
// CommonVerificationMethod DID doc verification method.
5151
type CommonVerificationMethod struct {
52-
ID string `json:"id"`
53-
Type string `json:"type"`
54-
Controller string `json:"controller"`
55-
PublicKeyJwk map[string]interface{} `json:"publicKeyJwk,omitempty"`
56-
PublicKeyMultibase string `json:"publicKeyMultibase,omitempty"`
57-
PublicKeyHex string `json:"publicKeyHex,omitempty"`
58-
PublicKeyBase58 string `json:"publicKeyBase58,omitempty"`
59-
EthereumAddress string `json:"ethereumAddress,omitempty"`
60-
BlockchainAccountID string `json:"blockchainAccountId,omitempty"`
52+
ID string `json:"id"`
53+
Type string `json:"type"`
54+
Controller string `json:"controller"`
55+
PublicKeyJwk map[string]interface{} `json:"publicKeyJwk,omitempty"`
56+
PublicKeyMultibase string `json:"publicKeyMultibase,omitempty"`
57+
PublicKeyHex string `json:"publicKeyHex,omitempty"`
58+
PublicKeyBase58 string `json:"publicKeyBase58,omitempty"`
59+
EthereumAddress string `json:"ethereumAddress,omitempty"`
60+
BlockchainAccountID string `json:"blockchainAccountId,omitempty"`
61+
StateContractAddress string `json:"stateContractAddress,omitempty"`
6162
IdentityState
6263
}
6364

verifiable/schema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ const (
104104
},
105105
"ethereumAddress": {
106106
"type": "string"
107+
},
108+
"stateContractAddress": {
109+
"type": "string"
107110
}
108111
},
109112
"required": [

0 commit comments

Comments
 (0)