Skip to content

Commit

Permalink
Merge pull request #5 from push-protocol/modify-init-did
Browse files Browse the repository at this point in the history
refactor: init did tx payload
  • Loading branch information
Igx22 authored Oct 4, 2024
2 parents c9705e4 + 0a82aa0 commit 958ce4d
Show file tree
Hide file tree
Showing 5 changed files with 634 additions and 79 deletions.
72 changes: 66 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,71 @@ export namespace Transaction {
}
}

export class InitDid extends jspb.Message {
getDid(): string;
setDid(value: string): void;
export class EncryptedText extends jspb.Message {
getCiphertext(): string;
setCiphertext(value: string): void;

getSalt(): string;
setSalt(value: string): void;

getNonce(): string;
setNonce(value: string): void;

getVersion(): string;
setVersion(value: string): void;

getPrekey(): string;
setPrekey(value: string): void;

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

export namespace EncryptedText {
export type AsObject = {
ciphertext: string,
salt: string,
nonce: string,
version: string,
prekey: string,
}
}

export class WalletToEncDerivedKey extends jspb.Message {
hasEncderivedprivkey(): boolean;
clearEncderivedprivkey(): void;
getEncderivedprivkey(): EncryptedText | undefined;
setEncderivedprivkey(value?: EncryptedText): void;

getSignature(): Uint8Array | string;
getSignature_asU8(): Uint8Array;
getSignature_asB64(): string;
setSignature(value: Uint8Array | 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?: EncryptedText.AsObject,
signature: Uint8Array | string,
}
}

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

Expand All @@ -287,7 +348,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 +362,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 958ce4d

Please sign in to comment.