Skip to main content
4 votes

What are the formats for the pub key/priv key/signatures?

Private Keys are typically encoded using WIF (Wallet Import Format). The Public Keys are likewise encoded in WIF format, but with the EOS prefix added to them. To obtain the actual ECC keys, the ...
John Haager's user avatar
  • 1,844
2 votes

What are the formats for the pub key/priv key/signatures?

The encryption is sha256 hash with a 32 byte buffer or string with encoding defaulting to UTF-8. Here's a link to the official repository for the elliptic curve functions which should be able to give ...
altShiftDev's user avatar
  • 1,135
2 votes

Encrypt data using public key, decrypt using EOS private key (eosjs-ecc)

Unlike RSA, ECC isn't able to encrypt and decrypt data on its on. If you wish to use the keys to encrypt and decrypt bulk data, you need to combine it with other cryptographic technologies. The ...
John Haager's user avatar
  • 1,844
2 votes
Accepted

How does a typical ECDSA signature verify work in EOS and ETH/BTC

There are several ECDSA according to what elliptic curve algorithm uses. Bitcoin, Ethereum and EOSIO support secp256k1 using Koblitz curve, and their ways to sign a transaction or recover public key ...
conr2d's user avatar
  • 2,320
2 votes

EOS signatures vs Ethereum signatures

In EOS a signature consists of the 'SIG' prefix, follwing the part that defines which curve algorithm was used (R1 or K1), follwing the SHA256 hash encoded with base58. Take a look at https://github....
cmadh's user avatar
  • 1,929
1 vote

Encrypt data using public key, decrypt using EOS private key (eosjs-ecc)

Here is one way to do it using the standard-ecies library import * as ecc from 'eosjs-ecc'; import * as ecies from 'standard-ecies'; export function testEncryptDecyptMessage() { const wif = "...
Thomas55777's user avatar
1 vote

What are the formats for the pub key/priv key/signatures?

Although the answers here are technically correct they lack any real details, so since I've recently had to do this myself, I thought I'd share the real nuts and bolts. An EOS private key is WIF ...
The Welder's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible