LayerTwo-Labs / bip300301_enforcer

CUSF software enforcing BIP300 and BIP301 rules.
1 stars 4 forks source link

Is it secure to expose cryptographic RPCs? #64

Open nchashch opened 5 days ago

nchashch commented 5 days ago

Right now we have ripemd160 and hmac_sha512 RPCs, implemented in #63 .

hmac_sha512 is supposed to be used by the launcher GUI in order to derive the seed of mainchain wallet and all sidechain wallet seed from a single master seed 12 words.

~After https://github.com/LayerTwo-Labs/cusf_sidechain_proto/issues/15 is done we will implement assymetric cryptography RPCs:~

Edit: These are already implemented in #75

Ecdsa(private key) ---> public key Sign( r , m ) --> s Verify( P, m , s) ---> True/False

The RPCs are only supposed to be used locally by the GUI launcher, so it might be good enough.

nchashch commented 18 hours ago

Public cryptography RPCs are implemented in #75 .

nchashch commented 18 hours ago

I'll keep this one open, just as a reminder to revisit this before actually going to production.