Contract.CreateStandardAccount 方法
根据公钥创建标准账户
命名空间:Neo.SmartContract.Framework.Services
程序集:Neo.SmartContract.Framework
#
语法public static extern UInt160 CreateStandardAccount(ECPoint pubKey);
#
示例public class Contract1 : SmartContract.Framework.SmartContract{ public static UInt160 CreateStandardAccount(byte[] pubKey) { return Contract.CreateStandardAccount((ECPoint)pubKey); }}
输入参数可以为压缩/非压缩公钥
压缩示例: { 0x02, 0x48, 0x6f, 0xd1, 0x57, 0x02, 0xc4, 0x49, 0x0a, 0x26, 0x70, 0x31, 0x12, 0xa5, 0xcc, 0x1d, 0x09, 0x23, 0xfd, 0x69, 0x7a, 0x33, 0x40, 0x6b, 0xd5, 0xa1, 0xc0, 0x0e, 0x00, 0x13, 0xb0, 0x9a, 0x70 } => "3ae15fc83b48d9bb5c327e578e2f1d2100ba1b89"
非压缩示例: { 0x04, 0x48, 0x6f, 0xd1, 0x57, 0x02, 0xc4, 0x49, 0x0a, 0x26, 0x70, 0x31, 0x12, 0xa5, 0xcc, 0x1d, 0x09, 0x23, 0xfd, 0x69, 0x7a, 0x33, 0x40, 0x6b, 0xd5, 0xa1, 0xc0, 0x0e, 0x00, 0x13, 0xb0, 0x9a, 0x70, 0x05, 0x43, 0x6c, 0x08, 0x2c, 0x2c, 0x88, 0x08, 0x5b, 0x4b, 0x53, 0xd5, 0x4c, 0x55, 0x66, 0xba, 0x44, 0x8d, 0x5c, 0x3e, 0x2a, 0x2a, 0x5c, 0x3a, 0x3e, 0xa5, 0x00, 0xe1, 0x40, 0x77, 0x55, 0x9c } => 3ae15fc83b48d9bb5c327e578e2f1d2100ba1b89