-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sing_payload message handling;
- Loading branch information
Showing
8 changed files
with
113 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Beacon.Sdk.Beacon.Sign | ||
{ | ||
public record SignPayloadRequest : BaseBeaconMessage | ||
{ | ||
public SignPayloadRequest( | ||
string id, | ||
string version, | ||
string senderId, | ||
SignPayloadType? signingType, | ||
string payload, | ||
string sourceAddress | ||
) | ||
: base(BeaconMessageType.sign_payload_request, version, id, senderId) | ||
{ | ||
SigningType = signingType; | ||
Payload = payload; | ||
SourceAddress = sourceAddress; | ||
} | ||
|
||
public SignPayloadType? SigningType { get; } | ||
public string Payload { get; } | ||
public string SourceAddress { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Beacon.Sdk.Beacon.Sign | ||
{ | ||
public record SignPayloadResponse : BaseBeaconMessage | ||
{ | ||
public SignPayloadResponse( | ||
string signature, | ||
string version, | ||
string id, | ||
string senderId | ||
) : base(BeaconMessageType.sign_payload_response, version, id, senderId) | ||
{ | ||
Signature = signature; | ||
} | ||
|
||
public string Signature { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Beacon.Sdk.Beacon.Sign | ||
{ | ||
public enum SignPayloadType | ||
{ | ||
raw, | ||
operation, | ||
micheline | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters