def test_privtopub():
    priv = crypto.mk_privkey(b'test')
    pub = crypto.privtopub(priv)
    pub2 = crypto.ECCx(raw_privkey=priv).raw_pubkey
    assert (pub == pub2)
def test_privtopub():
    priv = crypto.mk_privkey(b'test')
    pub = crypto.privtopub(priv)
    pub2 = crypto.ECCx(raw_privkey=priv).raw_pubkey
    assert (pub == pub2)