Jump to content

ripple-dot-net failing to sign accountSet with message key


jargoman

Recommended Posts

As the title suggests I am trying to sign an account set transaction using ripple-dot-net
https://github.com/ripple/ripple-dot-net

The first thing I tried was simply copying an ethereum address into the message-key box in my wallet. This produced and error:
Exception while signing. Not a number. 

So the next thing I tried was converting the string to it's hex equivalent:
Exception while signing. error parsing bool value

This led me to believe that I was feeding invalid json to ripple-dot-net. I added quotation marks to the hex string and this seemed to work now the error I get is
telBAD_PUBLIC_KEY

JSON being fed into ripple-dot-net is

{
"TransactionType": "AccountSet",
"Account": "rUxMbZQPHS84Jm7EvC3SKdaHLAkrx2qFwB",
"Fee": "10",
"LastLedgerSequence": 9925595,
"Sequence": 9923415,
"MessageKey": "f53b48a78b7b5111347b4ded5769baa11f65ea26"
}


My two questions are?

1. Why is it failing?

2. How would I set the message-key for the spark giveaway? do I remove the 0x to make it valid hex or do I convert the entire eth address to hex?

Link to comment
Share on other sites

@jargoman https://coil.com/p/wietse/Prepare-for-claiming-your-Spark-token-Flare-Networks-a-tool-for-XUMM-XRPToolkit/NkXJQUqpi

Take a ETH-compatible public account addressyou own the private key (or secret, like mnemonic, seed, ...) of, eg. 0x415f8315c9948Ad91e2Cce5b8583A36dA431fb61

Strip the first two characters, and turn the string to upper case characters: 415F8315...A431FB61

Prepend 02 and 24 zeroes: 020000...000415F8315...A431FB61

Store this value in the MessageKey field on your XRP ledger account (on ledger) using an AccountSet transaction

Link to comment
Share on other sites

4 minutes ago, Flintstone said:

@jargoman https://coil.com/p/wietse/Prepare-for-claiming-your-Spark-token-Flare-Networks-a-tool-for-XUMM-XRPToolkit/NkXJQUqpi

Take a ETH-compatible public account addressyou own the private key (or secret, like mnemonic, seed, ...) of, eg. 0x415f8315c9948Ad91e2Cce5b8583A36dA431fb61

Strip the first two characters, and turn the string to upper case characters: 415F8315...A431FB61

Prepend 02 and 24 zeroes: 020000...000415F8315...A431FB61

Store this value in the MessageKey field on your XRP ledger account (on ledger) using an AccountSet transaction

do you know what the 02000... is for? Will that stop it from failing?

Link to comment
Share on other sites

5 minutes ago, jargoman said:

do you know what the 02000... is for? Will that stop it from failing?

IT WORKED !!!!!!!!!!!!!!!

I can't believe it. 

Do you know why? Was it converting it to capitals? I think that's why, I was converting it to lower case because one of my errors was unexpected char 'F'. It must have been invalid json.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...