SHA256
Обновить лицензии, исторический HEADER и ссылки CORE/CONTENT
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@ seed=bytes(range(32)); key=Ed25519PrivateKey.from_private_bytes(seed); owner=key
|
||||
def item(payload,tags):
|
||||
raw=tagsraw(tags); sig=key.sign(deep([b'dataitem',b'1',b'2',owner,b'',b'',raw,payload])); return struct.pack('<H',2)+sig+owner+b'\0\0'+struct.pack('<QQ',len(tags),len(raw))+raw+payload,sha(sig)
|
||||
rows=[]; prev=bytes(32); root=None; channel=None; last={}
|
||||
license_text=('licenses:CC-BY-NC-4.0/sha256:41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0/arweave:Xtym3vUAyt7OgFBINBh1ene-5360Ah76c6D-O9ywxVE;SCDL-1.0/sha256:7f8aaf0de035c283651fe997b25b7fb7b614eb9886d052d79e761c843d9f55ba/arweave:wTyNiQvgPxBpMJOVauzVhtKikv_1kmTN18BhbIrcKys').encode()
|
||||
license_text=('public-content-license-grant:I grant rights to use all public materials of this and subsequent blocks of my SHiNE user blockchain, including files and other data identified in those blocks as an integral part thereof in accordance with the SHiNE Standards, under the following licenses, to the extent of the rights I am authorized to grant. Each license applies to subsequent publications until I accept a new version of that license by digitally signing a dedicated license-update block in my SHiNE user blockchain in accordance with the SHiNE Standards. Previously granted rights remain in effect. Licenses:CC-BY-NC-4.0/sha256:41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0/arweave:Xtym3vUAyt7OgFBINBh1ene-5360Ah76c6D-O9ywxVE;SHiNE-CDL-1.0/sha256:d54064909ae72fe1321fef52d5ff9b0bc2d94b51e53373b1d1b125d7b7bccd12/arweave:Q6mC26N5J1I2oudliGa-e-TTKjoQLigpXh7yH9EXjro').encode()
|
||||
header_body=b'SHiNE\x05Alice\x01\x00\x00'+struct.pack('>H', len(license_text))+license_text+owner
|
||||
for name,t,s,body,lc in [('header',0,0,header_body,None),('channel',0,1,b'\x04News\x00\x00\x00\x01\x00\x01',2147483647),('post',1,10,b'\x00\x05Hello',1),('reply',1,20,b'\x05Alice\x00\x01\x00\x00\x00\x02'+b'\x11'*32+b'\x00\x02Hi',None),('profile',4,1,b'\x00\x04name\x00\x05Alice',2147483645),('connection',3,14,b'\x05Alice\x00\x01\x00\x00\x00\x00'+b'\x11'*32,2147483646),('default',1,10,b'\x00\x04Home',0),('post2',1,10,b'\x00\x05Again',1)]:
|
||||
n=len(rows); ts=1700000000+n
|
||||
|
||||
Reference in New Issue
Block a user