Ejemplo n.º 1
0
        private Address ComputeAddress()
        {
            Span <byte> hash = ValueKeccak.Compute(Bytes).BytesAsSpan;

            return(new Address(hash.Slice(12).ToArray()));
        }
Ejemplo n.º 2
0
        public static Address ComputeAddress(Span <byte> publicKeyBytes)
        {
            Span <byte> hash = ValueKeccak.Compute(publicKeyBytes).BytesAsSpan;

            return(new Address(hash.Slice(12).ToArray()));
        }