Added public key method also for Span<byte>
This commit is contained in:
parent
9278224f44
commit
4ec458e0d3
@ -120,5 +120,10 @@ namespace Ed25519
|
|||||||
var bigA = Constants.B.ScalarMul(a);
|
var bigA = Constants.B.ScalarMul(a);
|
||||||
return bigA.EncodePoint();
|
return bigA.EncodePoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ReadOnlySpan<byte> ExtractPublicKey(this Span<byte> privateKey)
|
||||||
|
{
|
||||||
|
return new ReadOnlySpan<byte>(privateKey.ToArray()).ExtractPublicKey();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user