Borshdeserializer in PHP



borshdeserializer是否有等效的PHP代码?我之所以这么问,是因为我有base64数据要在PHP中解析,就像borshdeserializer所做的一样。

我拥有的样本数据:

["account"]=>
array(5) {
["data"]=>
array(2) {
[0]=>
string(908) "BCP2UFZTe6f180ZyBTH5JzwUX6vVeEJlE2y6p5oJNOzzM2k0adEqqNIYabYbmUCL+FBsyyb8nsg4Uibzu2kNo1QgAAAARmFuY3kgRnJlbmNoaWVzICMyNjYAAAAAAAAAAAAAAAAKAAAARkZyZW5jaGllc8gAAABodHRwczovL2Fyd2VhdmUubmV0L2l1cDVKaHlWQ1QzQlQ5dDVmenpJeGstWDExMVBfbHNMeFpGLXFYOXh3ckkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPQBAQUAAAAML+Vi4b9A7QxylJLl+BxiLtKRN1qoejmKcfu663GEkgEA5szHucTjLrBg8m6gywHKSa5nn3y1Dt3QaLtYr6w9584AItRvXjCtRZvj6EUOM56r/MWvdUYXJ7RtWxmzgYPIVX35ACEX4/AeBPspj1ndTWrVI0hhFsPAEUIXplrs3w9VfCldogAWdB4SHv88uOT2BRZ5LFmIQAEHINiYoqyiCCRQNRDa10oACwEBAf4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
[1]=>
string(6) "base64"
}
["executable"]=>
bool(false)
["lamports"]=>
int(5616720)
["owner"]=>
string(43) "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
["rentEpoch"]=>
int(262)
}
["pubkey"]=>
string(44) "CvupBt6vJ5m81ZBBdTULtPzDR2M6Hv97wVdbVQWNa5bn"

不幸的是,除非有一个非官方的实现,否则看起来并不是这样:https://github.com/near/borsh#implementations

另一方面,如果你实现它,它可能是一个优秀的开源项目!

相关内容

  • 没有找到相关文章

最新更新