Closed abitmore closed 8 years ago
To be clearer, the method to convert a public key
to address
is:
auto dat = pub.serialize();
addr = fc::ripemd160::hash( fc::sha512::hash( dat.data, sizeof( dat ) ) );
The master and the stealth branch will sort public keys by the address. Sample data from @theoreticalbts's sort-keys
program was used in our unit test to show the sorting is not alphabetical but instead by address..
@jcalfee I think this code need to be reverted (addresses should be sorted in ascending order)
Don't revert..I fixed it...
Sorry about all the messy diff, the atom spaces plugin goes crazy changing the whole file. I have disabled it.
Confirmed to be working in current master.
This is a re-post of https://github.com/cryptonomex/graphene/issues/630, since it can be solved in GUI alone.
Exception
Missing Active Authority
is reported while trying to addTEST56ankGHKf6qUsQe7vPsXTSEqST6Dt1ff73aV3YQbedzRua8NLQ
as another active key authority to http://testnet.bitshares.eu/#/account/testaccount1/permissions/, even if threshold set to 1 and weight of all keys set to 1. Private key of the new new public key is5K9piFpyJ15zcYBc4R3gAeLFYb6PuRFEiDCbzLkSL9C4d7fWLyB
.Original key pairs of that account:
TEST8me6d9PqzTgcoHxx6b4rnvWVTqz11kafidRAZwfacJkcJtfd75
5JBqM3timYgxvAjd7ddBhr4mdQq8foP3rLVXrphZCs6aYdJ48u2
TEST6vGWLjXrB971RXKoejCsZoAsv1wbfEmwNK7deN3kcdYQFck8wb
5JSKnvw8AodxNrgE8uETCApJUmZ7u3t1tSWp3ay823MNhmyAmqS
It turns out that the transaction which contains multiple key authorities and signed by GUI is rejected by witness_node.
As @theoreticalbts commented in https://github.com/cryptonomex/graphene/issues/630#issuecomment-199950145 and https://github.com/cryptonomex/graphene/issues/630#issuecomment-199981206, the issue can be fixed in GUI: