MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / KeySet

Method KeySet

source/core/StarCurve25519.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 PublicKey publicKey;
13
14 KeySet() {
15 SecretKey secret;
16 Random::randBytes(SecretKeySize).copyTo((char*)secret.data());
17
18 secret[0] &= 248;
19 secret[31] &= 127;
20 secret[31] |= 64;
21
22 ed25519_CreateKeyPair(publicKey.data(), privateKey.data(), nullptr, secret.data());
23 }
24};
25
26static KeySet const& staticKeys() {

Callers

nothing calls this directly

Calls 4

randBytesFunction · 0.85
ed25519_CreateKeyPairFunction · 0.85
copyToMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected