func (pub *PublicKey) SetBytes(buf []byte) *PublicKey {
	bigX := new(big.Int)
	bigY := new(big.Int)
	bigX.SetBytes(buf[:32])
	bigY.SetBytes(buf[32:64])

	pub.X = bigX
	pub.Y = bigY
	pub.Curve = elliptic.P256()
	return pub
}
// SetBytes decodes buf and stores the values in pub X and Y
SetBytes decodes buf and stores the values in pub X and Y
// SetBytes decodes buf and stores the values in pub X and Y
func (pub *PublicKey) SetBytes(buf []byte) *PublicKey {
	bigX := new(big.Int)
	bigY := new(big.Int)
	bigX.SetBytes(buf[:32])
	bigY.SetBytes(buf[32:64])
	pub.X = bigX
	pub.Y = bigY
	pub.Curve = elliptic.P256()
	return pub
}
func ( pub * PublicKey ) SetBytes ( buf [ ] byte ) * PublicKey { bigX := new ( big . Int ) bigY := new ( big . Int ) bigX . SetBytes ( buf [ : 32 ] ) bigY . SetBytes ( buf [ 32 : 64 ] ) pub . X = bigX pub . Y = bigY pub . Curve = elliptic . P256 ( ) return pub }
SetBytes decodes buf and stores the values in pub X and Y
SetBytes decodes buf and stores the values in pub X and Y