MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / from

Method from

ipc/types/src/keys.rs:227–229  ·  view source on GitHub ↗
(private_key: &PrivateKey)

Source from the content-addressed store, hash-verified

225// Type conversions between keys
226impl From<&PrivateKey> for PublicKey {
227 fn from(private_key: &PrivateKey) -> Self {
228 private_key.public_key(KeyFormat::Uncompressed)
229 }
230}
231
232impl From<PrivateKey> for PublicKey {

Callers

nothing calls this directly

Calls 5

with_formatMethod · 0.80
EthAddressClass · 0.70
public_keyMethod · 0.45
intoMethod · 0.45
to_bytesMethod · 0.45

Tested by

no test coverage detected