Skip to content

Commit

Permalink
feat(kmd): ✨ implement SignTransactionRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Oct 29, 2021
1 parent 9045af3 commit 38ec667
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using AlgoSdk.Crypto;
using Unity.Collections;

namespace AlgoSdk
{
[AlgoApiObject]
public struct SignTransactionRequest
: IEquatable<SignTransactionRequest>
{
[AlgoApiField("public_key", null)]
public Ed25519.PublicKey PublicKey;

[AlgoApiField("transaction", null)]
public byte[] Transaction;

[AlgoApiField("wallet_handle_token", null)]
public FixedString128Bytes WalletHandleToken;

[AlgoApiField("wallet_password", null)]
public FixedString128Bytes WalletPassword;

public bool Equals(SignTransactionRequest other)
{
return PublicKey.Equals(other.PublicKey)
&& ArrayComparer.Equals(Transaction, other.Transaction)
&& WalletHandleToken.Equals(other.WalletHandleToken)
&& WalletPassword.Equals(other.WalletPassword)
;
}
}
}

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

0 comments on commit 38ec667

Please sign in to comment.