Skip to content

Commit

Permalink
refactor: init did tx payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Oct 3, 2024
1 parent c9705e4 commit b1b8b89
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 76 deletions.
32 changes: 26 additions & 6 deletions src/generated/push/block_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,31 @@ export namespace Transaction {
}
}

export class InitDid extends jspb.Message {
getDid(): string;
setDid(value: string): void;
export class WalletToEncDerivedKey extends jspb.Message {
getEncderivedprivkey(): string;
setEncderivedprivkey(value: string): void;

getSignature(): string;
setSignature(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): WalletToEncDerivedKey.AsObject;
static toObject(includeInstance: boolean, msg: WalletToEncDerivedKey): WalletToEncDerivedKey.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: WalletToEncDerivedKey, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): WalletToEncDerivedKey;
static deserializeBinaryFromReader(message: WalletToEncDerivedKey, reader: jspb.BinaryReader): WalletToEncDerivedKey;
}

export namespace WalletToEncDerivedKey {
export type AsObject = {
encderivedprivkey: string,
signature: string,
}
}

export class InitDid extends jspb.Message {
getMasterpubkey(): string;
setMasterpubkey(value: string): void;

Expand All @@ -287,7 +308,7 @@ export class InitDid extends jspb.Message {
getDerivedpubkey(): string;
setDerivedpubkey(value: string): void;

getWallettoencderivedkeyMap(): jspb.Map<string, string>;
getWallettoencderivedkeyMap(): jspb.Map<string, WalletToEncDerivedKey>;
clearWallettoencderivedkeyMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InitDid.AsObject;
Expand All @@ -301,11 +322,10 @@ export class InitDid extends jspb.Message {

export namespace InitDid {
export type AsObject = {
did: string,
masterpubkey: string,
derivedkeyindex: number,
derivedpubkey: string,
wallettoencderivedkeyMap: Array<[string, string]>,
wallettoencderivedkeyMap: Array<[string, WalletToEncDerivedKey.AsObject]>,
}
}

Expand Down
Loading

0 comments on commit b1b8b89

Please sign in to comment.