@@ -22,18 +22,33 @@ export declare type VerusCLIVerusIDJson = {
22
22
[ key : string ] : string ;
23
23
} ;
24
24
contentmultimap ?: ContentMultiMapJson ;
25
- flags : number ;
26
- identityaddress : string ;
27
- minimumsignatures : number ;
28
- name : string ;
29
- parent : string ;
30
- primaryaddresses : Array < string > ;
25
+ flags ? : number ;
26
+ identityaddress ? : string ;
27
+ minimumsignatures ? : number ;
28
+ name ? : string ;
29
+ parent ? : string ;
30
+ primaryaddresses ? : Array < string > ;
31
31
privateaddress ?: string ;
32
- recoveryauthority : string ;
33
- revocationauthority : string ;
32
+ recoveryauthority ? : string ;
33
+ revocationauthority ? : string ;
34
34
systemid ?: string ;
35
- timelock : number ;
36
- version : number ;
35
+ timelock ?: number ;
36
+ version ?: number ;
37
+ } ;
38
+ export declare type VerusIDInitData = {
39
+ version ?: BigNumber ;
40
+ flags ?: BigNumber ;
41
+ min_sigs ?: BigNumber ;
42
+ primary_addresses ?: Array < KeyID > ;
43
+ parent ?: IdentityID ;
44
+ system_id ?: IdentityID ;
45
+ name ?: string ;
46
+ content_map ?: Hashes ;
47
+ content_multimap ?: ContentMultiMap ;
48
+ revocation_authority ?: IdentityID ;
49
+ recovery_authority ?: IdentityID ;
50
+ private_addresses ?: Array < SaplingPaymentAddress > ;
51
+ unlock_after ?: BigNumber ;
37
52
} ;
38
53
export declare class Identity extends Principal implements SerializableEntity {
39
54
parent : IdentityID ;
@@ -52,21 +67,17 @@ export declare class Identity extends Principal implements SerializableEntity {
52
67
static VERSION_CURRENT : import ( "bn.js" ) ;
53
68
static VERSION_FIRSTVALID : import ( "bn.js" ) ;
54
69
static VERSION_LASTVALID : import ( "bn.js" ) ;
55
- constructor ( data ?: {
56
- version ?: BigNumber ;
57
- flags ?: BigNumber ;
58
- min_sigs ?: BigNumber ;
59
- primary_addresses ?: Array < KeyID > ;
60
- parent ?: IdentityID ;
61
- system_id ?: IdentityID ;
62
- name ?: string ;
63
- content_map ?: Hashes ;
64
- content_multimap ?: ContentMultiMap ;
65
- revocation_authority ?: IdentityID ;
66
- recovery_authority ?: IdentityID ;
67
- private_addresses ?: Array < SaplingPaymentAddress > ;
68
- unlock_after ?: BigNumber ;
69
- } ) ;
70
+ constructor ( data ?: VerusIDInitData ) ;
71
+ protected serializeParent ( ) : boolean ;
72
+ protected serializeSystemId ( ) : boolean ;
73
+ protected serializeName ( ) : boolean ;
74
+ protected serializeContentMap ( ) : boolean ;
75
+ protected serializeContentMultiMap ( ) : boolean ;
76
+ protected serializeRevocation ( ) : boolean ;
77
+ protected serializeRecovery ( ) : boolean ;
78
+ protected serializePrivateAddresses ( ) : boolean ;
79
+ protected serializeUnlockAfter ( ) : boolean ;
80
+ private getIdentityByteLength ;
70
81
getByteLength ( ) : number ;
71
82
clearContentMultiMap ( ) : void ;
72
83
toBuffer ( ) : Buffer ;
0 commit comments