This repository holds the code for a simple backend service to support air-gapped transaction signing using a HD Wallet.
- Clone the repository:
git clone https://github.com/crustyapples/go-keystone-backend.git- Change to the project directory:
cd go-keystone- Install dependencies:
go mod download- Build the project:
go build - Run the project:
go run main.go
POST /get-fingerprint
{
"urData": "string"
}{
"sourceFingerprint": "string"
}POST /get-sign-request
{
"txData": {
"Nonce": "uint64",
"To": "string",
"Value": "uint64",
"GasLimit": "uint64",
"GasPrice": "uint64",
"Data": "string",
"ChainID": "int"
},
"fingerprint": "string"
}
{
"ethSignRequestCbor": "byte array"
}POST /sign-transaction
{
"signature": "string",
"txData": {
"Nonce": "uint64",
"To": "string",
"Value": "uint64",
"GasLimit": "uint64",
"GasPrice": "uint64",
"Data": "string",
"ChainID": "int"
},
"signer": "string"
}
{
"signedTxn": "string"
}This project is licensed under the MIT License.