Function fromBytes [src]
Unpack a 32-byte representation of a scalar
Prototype
pub fn fromBytes(bytes: CompressedScalar) Scalar Parameters
bytes: CompressedScalar Source
pub fn fromBytes(bytes: CompressedScalar) Scalar {
var scalar = ScalarDouble.fromBytes32(bytes);
return scalar.reduce(5);
}