Skip to content

YubiHSM and AWS KMS JSON RPC signer server. Especially for launching a secure OP Stack chain

License

Notifications You must be signed in to change notification settings

upnodedev/signer-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yubihsm-signer-proxy

Help

cargo r -r -- -h
yubihsm-signer-proxy 0.1.0

USAGE:
    yubihsm-signer-proxy --auth-key-id <auth-key-id> --device-serial-id <device-serial-id> --password <password> --rpc-url <rpc-url> --signing-key-id <signing-key-id>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --auth-key-id <auth-key-id>              YubiHSM auth key ID [env: YUBIHSM_AUTH_KEY_ID=]
    -d, --device-serial-id <device-serial-id>    YubiHSM device serial ID [env: YUBIHSM_DEVICE_SERIAL_ID=]
    -p, --password <password>                    YubiHSM auth key password [env: YUBIHSM_PASSWORD]
    -r, --rpc-url <rpc-url>                      RPC URL [env: RPC_URL=]
    -s, --signing-key-id <signing-key-id>        YubiHSM signing key ID [env: YUBIHSM_SIGNING_KEY_ID=]

Run

cargo r -r -- -a 4 -d "001" -p "password" -s 1 -r "https://optimism-sepolia.drpc.org"

Test

curl -X POST -H "Content-Type: application/json" -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_signTransaction",
    "params": [
        {
            "chainId": 11155420,
            "data": "0x",
            "from": "0x",
            "gas": "0x7b0c",
            "gasPrice": "0x1250b1",
            "nonce": "0x0",
            "to": "0x",
            "value": "0x2386f26fc10000"
        }
    ]
}' http://localhost:3000

About

YubiHSM and AWS KMS JSON RPC signer server. Especially for launching a secure OP Stack chain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •