Skip to content

Commit

Permalink
Merge pull request #21 from jerson/add-convert-metadata
Browse files Browse the repository at this point in the history
feat: Add convert and metadata methods
  • Loading branch information
jerson authored Jul 5, 2022
2 parents ec85035 + 6f503a3 commit aa9d019
Show file tree
Hide file tree
Showing 21 changed files with 812 additions and 296 deletions.
210 changes: 119 additions & 91 deletions bridge/call.go

Large diffs are not rendered by default.

52 changes: 0 additions & 52 deletions bridge/model/ArmorDecodeRequest.go

This file was deleted.

52 changes: 52 additions & 0 deletions bridge/model/ConvertPrivateKeyToPublicKeyRequest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions bridge/model/GetPrivateKeyMetadataRequest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions bridge/model/GetPublicKeyMetadataRequest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions bridge/model/PrivateKeyMetadataResponse.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions bridge/model/PublicKeyMetadataResponse.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions flatbuffers/bridge.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ table ArmorEncodeRequest {
packet:[ubyte];
}

table GetPublicKeyMetadataRequest {
public_key:string;
}

table GetPrivateKeyMetadataRequest {
private_key:string;
}

table ConvertPrivateKeyToPublicKeyRequest {
private_key:string;
}

/// KeyOptions collects a number of parameters along with sensible defaults.
table KeyOptions {
/// Hash is the default hash function to be used.
Expand Down Expand Up @@ -242,6 +254,16 @@ table KeyPair {
private_key:string;
}

table PublicKeyMetadataResponse {
output:model.PublicKeyMetadata;
error:string;
}

table PrivateKeyMetadataResponse {
output:model.PrivateKeyMetadata;
error:string;
}

table PublicKeyMetadata {
key_id:string;
key_id_short:string;
Expand Down
Loading

0 comments on commit aa9d019

Please sign in to comment.