元宇宙本体论的“共享”可以通过标准化的形式表现,标准是在科学研究和理论实践的基础上,在一定范围内经过协商一致获得的最佳秩序。元宇宙的标准可分为基础类、技术和平台类、数据和协议类、内容和资产类、应用和服务类、治理和监管类等五大类。基础类标准为其他标准建立共同的语言环境,包括术语、本体和分类、代码和标识、参考架构等内容。技术和平台类标准主要规范技术系统的分布式网络、智能计算、数据流动、信息安全和隐私保护等
//waxjs rpc实例,注意需要先login()
const wax = new waxjs.WaxJS({
rpcEndpoint: 'https://wax.greymass.com',
});
const payer_name = "fuckpayforit"; //
const payer_private_key = "
//eosjs rpc实例
const rpc = new eosjs_jsonrpc.JsonRpc('https://wax.greymass.com');
const provider = new eosjs_jssig.JsSignatureProvider([payer_private_key]);
const api = new eosjs_api.Api({rpc: rpc, signatureProvider: provider});
//注意broadcast: false,
let transcation_args = await api.transact({
actions: [{
account: 'eosio.token',
name: 'transfer',
authorization: [
{
actor: payer_name,
permission: "active",
},
{
actor: wax.user.account,
permission: "active",
},
],
data: {
from: wax.user.account,
to: "consumer1111",
quantity: '0.00010000 WAX',
memo: 'by waxjs',
},
}],
}, {
blocksBehind: 3,
expireSeconds: 90,
sign: false,
broadcast: false,
});
//首先借助eosjs用【fuckpayforit】
let available_keys = await api.signatureProvider.getAvailableKeys();
let sign_args = {
chainId: api.chainId,
requiredKeys: available_keys,
serializedTransaction: transcation_args.serializedTransaction,
};
transcation_args = await api.signatureProvider.sign(sign_args);
const payer_signatures = transcation_args.signatures;
//
available_keys = await wax.api.signatureProvider.getAvailableKeys();
sign_args = {
chainId: api.chainId,
requiredKeys: available_keys,
serializedTransaction: transcation_args.serializedTransaction,
};
transcation_args = await wax.api.signatureProvider.sign(sign_args);
//合并签名
transcation_args.signatures = payer_signatures.concat(transcation_args.signatures)
//最后,发送该笔交易,用eosjs或者用waxjs来发送都行,一样的
const result = await api.pushSignedTransaction(transcation_args);