SHA256
Обновить лицензии, исторический HEADER и ссылки CORE/CONTENT
This commit is contained in:
@@ -3563,7 +3563,8 @@
|
||||
"text_094": "Representation {value1}",
|
||||
"text_099": "Removed channel {value1}",
|
||||
"text_100": "Changed communication ({value1})",
|
||||
"text_006": "Open blockchain record ↗",
|
||||
"text_006": "Open CORE in Arweave ↗",
|
||||
"content_arweave_link": "Open CONTENT in Arweave ↗",
|
||||
"text_110": "Address",
|
||||
"text_111": "Links",
|
||||
"text_112": "Telephone",
|
||||
@@ -4438,19 +4439,23 @@
|
||||
"registration_licenses": {
|
||||
"title": "Licensing public materials",
|
||||
"intro": "In SHiNE, your public materials are stored in a decentralized blockchain designed for permanent preservation.",
|
||||
"rights": "When you publish, you retain your copyright and grant rights to use and distribute your public materials under two independent licenses.",
|
||||
"cc_description": "Anyone may use, copy, adapt, and share your public materials for noncommercial purposes with attribution.",
|
||||
"scdl_description": "Compatible participants in the decentralized SHiNE social network may use and distribute your public materials commercially under the terms of this license.",
|
||||
"original": "Original license — English",
|
||||
"rights": "You retain your copyright and grant rights to use public materials under two independent licenses.",
|
||||
"cc_description": "A license for noncommercial use.",
|
||||
"scdl_description": "A license for commercial use of public materials by operators of compatible nodes in the decentralized SHiNE network. It allows independent network participants to distribute public materials and earn revenue from their distribution.",
|
||||
"original": "English original",
|
||||
"russian": "Russian translation",
|
||||
"read_full": "Please read the full texts of both licenses carefully before accepting them.",
|
||||
"important": "Important to know",
|
||||
"copyright": "You retain your copyright and may use your works independently.",
|
||||
"irrevocable": "The rights granted under these licenses are irrevocable to the extent permitted by applicable law.",
|
||||
"scope": "The licenses cover all subsequent public materials in your user blockchain, including attached files, until you accept new versions of the respective licenses.",
|
||||
"irrevocable": "The rights granted are irrevocable to the extent permitted by applicable law and the terms of the respective licenses.",
|
||||
"permanent": "Public materials may remain stored and shared even after you delete a post or your account.",
|
||||
"owned_rights": "You can grant only rights you hold.",
|
||||
"private_messages": "Your private messages remain encrypted, are not published to the public blockchain, and are not licensed under these terms.",
|
||||
"confirmation": "By continuing registration, you confirm that you understand the permanent storage of public materials, accept the license terms, and grant the rights they describe.",
|
||||
"signature": "After registration, your acceptance is recorded by your digital signature in HEADER block 0 of your user blockchain, which identifies the English license texts.",
|
||||
"owned_rights": "You may grant only rights you are authorized to grant.",
|
||||
"private_messages": "Private messages and other nonpublic materials are not covered by these licenses.",
|
||||
"authentic_texts": "The English originals are the authoritative texts of the licenses.",
|
||||
"confirmation": "By clicking ‘Accept and continue’, you accept both licenses and grant the rights they provide.",
|
||||
"signature": "Your acceptance and grant of rights are recorded by a digital signature in the first block (HEADER No. 0) of your SHiNE user blockchain.",
|
||||
"license_updates": "You may accept new versions of the licenses by signing a dedicated block in accordance with the SHiNE Standards. Rights previously granted remain in effect.",
|
||||
"accept": "Accept and continue"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3764,7 +3764,8 @@
|
||||
"text_003": "Открыть канал →",
|
||||
"text_004": "Открыть цель →",
|
||||
"text_005": "Открыть профиль →",
|
||||
"text_006": "Открыть запись в блокчейне ↗",
|
||||
"text_006": "Открыть CORE в Arweave ↗",
|
||||
"content_arweave_link": "Открыть CONTENT в Arweave ↗",
|
||||
"text_007": "Показать историю моего блокчейна",
|
||||
"text_008": "Файлы в Arweave (с этого клиента)",
|
||||
"text_009": "Использовать ключ блокчейна с внешнего устройства",
|
||||
@@ -4438,19 +4439,23 @@
|
||||
"registration_licenses": {
|
||||
"title": "Лицензирование публичных материалов",
|
||||
"intro": "В Сиянии (SHiNE) ваши публичные материалы сохраняются в децентрализованном блокчейне, предназначенном для постоянного хранения информации.",
|
||||
"rights": "Публикуя материалы, вы сохраняете свои авторские права и предоставляете права на использование и распространение этих материалов на условиях двух независимых лицензий.",
|
||||
"cc_description": "В некоммерческих целях любой человек может использовать, копировать, перерабатывать и распространять ваши публичные материалы с указанием авторства.",
|
||||
"scdl_description": "Совместимые участники децентрализованной социальной сети Сияние (SHiNE) могут использовать и распространять ваши публичные материалы в коммерческих целях в соответствии с условиями лицензии.",
|
||||
"original": "Оригинал лицензии — English",
|
||||
"rights": "Вы сохраняете свои авторские права и предоставляете права на использование публичных материалов на условиях двух независимых лицензий.",
|
||||
"cc_description": "Лицензия на некоммерческое использование.",
|
||||
"scdl_description": "Лицензия на коммерческое использование публичных материалов операторами совместимых узлов децентрализованной сети Сияние (SHiNE). Она позволяет независимым участникам сети распространять публичные материалы и получать доход от их распространения.",
|
||||
"original": "Оригинал на английском",
|
||||
"russian": "Русский перевод",
|
||||
"read_full": "Пожалуйста, внимательно ознакомьтесь с полными текстами обеих лицензий перед их принятием.",
|
||||
"important": "Важно знать",
|
||||
"copyright": "Вы сохраняете авторские права и можете самостоятельно распоряжаться своими произведениями.",
|
||||
"irrevocable": "Предоставленные лицензии являются безотзывными в пределах применимого законодательства.",
|
||||
"scope": "Лицензии распространяются на все последующие публичные материалы вашего пользовательского блокчейна, включая прикреплённые файлы, до принятия вами новых версий соответствующих лицензий.",
|
||||
"irrevocable": "Предоставленные права являются безотзывными в пределах применимого законодательства и условий соответствующих лицензий.",
|
||||
"permanent": "Публичные материалы могут сохраняться и распространяться даже после удаления публикации или учётной записи.",
|
||||
"owned_rights": "Вы можете предоставлять только те права, которыми обладаете.",
|
||||
"private_messages": "Ваша личная переписка остаётся защищённой шифрованием, не публикуется в публичном блокчейне, и права на её использование по указанным лицензиям не предоставляются.",
|
||||
"confirmation": "Продолжая регистрацию, вы подтверждаете, что понимаете особенности постоянного хранения публичных материалов, принимаете условия указанных лицензий и предоставляете предусмотренные ими права.",
|
||||
"signature": "После регистрации принятие лицензий фиксируется вашей цифровой подписью в блоке HEADER №0 пользовательского блокчейна с указанием идентификаторов английских текстов лицензий.",
|
||||
"owned_rights": "Вы можете предоставлять только те права, которыми вправе распоряжаться.",
|
||||
"private_messages": "Личная переписка и другие непубличные материалы не подпадают под действие этих лицензий.",
|
||||
"authentic_texts": "Аутентичными текстами лицензий являются их английские оригиналы.",
|
||||
"confirmation": "Нажимая кнопку «Принять и продолжить», вы принимаете условия обеих лицензий и предоставляете предусмотренные ими права.",
|
||||
"signature": "Ваше согласие и предоставление прав фиксируются цифровой подписью в первом блоке (HEADER №0) вашего пользовательского блокчейна SHiNE.",
|
||||
"license_updates": "Принятие новых версий лицензий осуществляется посредством подписания специального блока в соответствии со стандартами SHiNE. Ранее предоставленные права сохраняются.",
|
||||
"accept": "Принять и продолжить"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -432,6 +432,15 @@ function createEntryCard({ item, inspection, parseError, channelNames, blockchai
|
||||
arweave.textContent = t('screens.my_blockchain_view.text_006');
|
||||
actions.append(arweave);
|
||||
}
|
||||
if (inspection?.contentDataItemId) {
|
||||
const content = document.createElement('a');
|
||||
content.className = 'my-blockchain-entry__action my-blockchain-entry__external';
|
||||
content.href = `https://arweave.net/${inspection.contentDataItemId}`;
|
||||
content.target = '_blank';
|
||||
content.rel = 'noopener noreferrer';
|
||||
content.textContent = t('screens.my_blockchain_view.content_arweave_link');
|
||||
actions.append(content);
|
||||
}
|
||||
if (actions.childElementCount) details.append(actions);
|
||||
|
||||
const info = document.createElement('div');
|
||||
|
||||
@@ -4,7 +4,7 @@ import { state } from '../state.js';
|
||||
|
||||
const LICENSES = [
|
||||
{ name: 'CC BY-NC 4.0', original: 'https://arweave.net/Xtym3vUAyt7OgFBINBh1ene-5360Ah76c6D-O9ywxVE', russian: 'https://creativecommons.org/licenses/by-nc/4.0/legalcode.ru' },
|
||||
{ name: 'SCDL 1.0', original: 'https://arweave.net/wTyNiQvgPxBpMJOVauzVhtKikv_1kmTN18BhbIrcKys', russian: './static-sites/licenses/SCDL-1.0-ru.html' },
|
||||
{ name: 'SHiNE-CDL 1.0', original: 'https://arweave.net/Q6mC26N5J1I2oudliGa-e-TTKjoQLigpXh7yH9EXjro', russian: 'https://arweave.net/Efr7_32Joi4DjMZKRLKeLeoZZRqB9pg3_LZsi_LpRU8' },
|
||||
];
|
||||
|
||||
export const pageMeta = { id: 'registration-licenses-view', get title() { return t('screens.registration_licenses.title'); }, showAppChrome: false };
|
||||
@@ -27,18 +27,22 @@ export function render({ navigate }) {
|
||||
for (const [index, license] of LICENSES.entries()) {
|
||||
const title = document.createElement('h2'); title.textContent = license.name; body.append(title);
|
||||
paragraph(index === 0 ? 'cc_description' : 'scdl_description');
|
||||
const links = document.createElement('p'); links.className = 'signup-guidance';
|
||||
const original = document.createElement('a'); original.href = license.original; original.target = '_blank'; original.rel = 'noopener noreferrer'; original.textContent = t('screens.registration_licenses.original');
|
||||
const russian = document.createElement('a'); russian.href = license.russian; russian.target = '_blank'; russian.rel = 'noopener noreferrer'; russian.textContent = t('screens.registration_licenses.russian');
|
||||
links.append(original, document.createTextNode(' · '), russian); body.append(links);
|
||||
const links = document.createElement('div'); links.className = 'signup-license-links';
|
||||
const original = document.createElement('a'); original.className = 'secondary-btn signup-license-link'; original.href = license.original; original.target = '_blank'; original.rel = 'noopener noreferrer'; original.textContent = t('screens.registration_licenses.original');
|
||||
const russian = document.createElement('a'); russian.className = 'secondary-btn signup-license-link'; russian.href = license.russian; russian.target = '_blank'; russian.rel = 'noopener noreferrer'; russian.textContent = t('screens.registration_licenses.russian');
|
||||
links.append(original, russian); body.append(links);
|
||||
}
|
||||
const readFull = document.createElement('p');
|
||||
const readFullStrong = document.createElement('strong');
|
||||
readFullStrong.textContent = t('screens.registration_licenses.read_full');
|
||||
readFull.append(readFullStrong); body.append(readFull);
|
||||
const important = document.createElement('h2'); important.textContent = t('screens.registration_licenses.important'); body.append(important);
|
||||
const list = document.createElement('ul');
|
||||
for (const key of ['copyright', 'irrevocable', 'permanent', 'owned_rights', 'private_messages']) {
|
||||
for (const key of ['copyright', 'scope', 'irrevocable', 'permanent', 'owned_rights', 'private_messages', 'authentic_texts']) {
|
||||
const item = document.createElement('li'); item.textContent = t(`screens.registration_licenses.${key}`); list.append(item);
|
||||
}
|
||||
body.append(list);
|
||||
paragraph('confirmation'); paragraph('signature');
|
||||
paragraph('confirmation'); paragraph('signature'); paragraph('license_updates');
|
||||
const accept = document.createElement('button'); accept.type = 'button'; accept.className = 'primary-btn signup-next'; accept.textContent = t('screens.registration_licenses.accept');
|
||||
accept.addEventListener('click', () => { draft.licensesAccepted = true; navigate(draft.flowType === 'free' ? 'registration-email-view' : 'registration-payment-view'); });
|
||||
body.append(accept);
|
||||
|
||||
@@ -546,7 +546,7 @@ function extractContactsFromDialogs(dialogs) {
|
||||
}
|
||||
|
||||
export const HEADER_VERSION = 1;
|
||||
export const HEADER_DEFAULT_LICENSE = 'licenses:CC-BY-NC-4.0/sha256:41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0/arweave:Xtym3vUAyt7OgFBINBh1ene-5360Ah76c6D-O9ywxVE;SCDL-1.0/sha256:7f8aaf0de035c283651fe997b25b7fb7b614eb9886d052d79e761c843d9f55ba/arweave:wTyNiQvgPxBpMJOVauzVhtKikv_1kmTN18BhbIrcKys';
|
||||
export const HEADER_DEFAULT_LICENSE = "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";
|
||||
|
||||
function makeHeaderBodyBytes({ login, initialBlockchainKey32, license = HEADER_DEFAULT_LICENSE, accountType = 1, previousAccounts = [] }) {
|
||||
const cleanLogin = String(login || '').trim();
|
||||
|
||||
@@ -1405,6 +1405,8 @@
|
||||
gap: 17px;
|
||||
}
|
||||
.signup-wizard__body > .signup-next { margin-top: auto; }
|
||||
.signup-license-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
|
||||
.signup-license-link { display: flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; text-decoration: none; line-height: 1.35; }
|
||||
.signup-stepper { display: grid; justify-items: center; gap: 9px; padding: 4px 0 12px; }
|
||||
.signup-stepper__dots { display: flex; align-items: center; gap: 13px; }
|
||||
.signup-stepper__dot {
|
||||
|
||||
@@ -10,7 +10,7 @@ const source = auth.split('function makeHeaderBodyBytes(')[1]?.split('\nfunction
|
||||
assert.ok(source, 'production makeHeaderBodyBytes must exist');
|
||||
const utf8 = value => new TextEncoder().encode(value);
|
||||
const encode = vm.runInNewContext(`function makeHeaderBodyBytes(${source}\nmakeHeaderBodyBytes`, {
|
||||
HEADER_DEFAULT_LICENSE: auth.match(/export const HEADER_DEFAULT_LICENSE = '([^']+)'/)[1],
|
||||
HEADER_DEFAULT_LICENSE: JSON.parse(auth.match(/export const HEADER_DEFAULT_LICENSE = ("[^"]+");/)[1]),
|
||||
utf8Bytes: utf8,
|
||||
int8Byte: value => Uint8Array.of(value),
|
||||
concatBytes: (...parts) => Uint8Array.from(parts.flatMap(part => Array.from(part))),
|
||||
|
||||
@@ -39,7 +39,7 @@ test('existing body factories produce exact independent signed pair; ordinal is
|
||||
assert.equal(inspection.frame.blockNumber,core.blockNumber);assert.equal(inspection.frame.type,content.type);
|
||||
assert.deepEqual(Buffer.from(inspection.frame.bodyBytes),Buffer.from(content.body));
|
||||
if(core.line) assert.equal(inspection.frame.body.line.lineSequence,42);
|
||||
if(core.blockNumber===0) assert.match(inspection.frame.body.license,/^licenses:CC-BY-NC-4\.0\/sha256:/);
|
||||
if(core.blockNumber===0) assert.match(inspection.frame.body.license,/^public-content-license-grant:.*Licenses:CC-BY-NC-4\.0\/sha256:.*;SHiNE-CDL-1\.0\/sha256:/);
|
||||
}
|
||||
});
|
||||
test('lost response: retransmit the identical signed container, then confirm canonical bytes',async()=>{
|
||||
|
||||
@@ -10,7 +10,7 @@ const auth = read('../js/services/auth-service.js');
|
||||
const makeBytesFunction = auth.split('function makeHeaderBodyBytes(')[1]?.split('\nfunction makeUserParamBodyBytes(')[0];
|
||||
assert.ok(makeBytesFunction);
|
||||
const context = {
|
||||
HEADER_DEFAULT_LICENSE: auth.match(/export const HEADER_DEFAULT_LICENSE = '([^']+)'/)[1],
|
||||
HEADER_DEFAULT_LICENSE: JSON.parse(auth.match(/export const HEADER_DEFAULT_LICENSE = ("[^"]+");/)[1]),
|
||||
utf8Bytes: value => new TextEncoder().encode(value),
|
||||
int8Byte: value => Uint8Array.of(value),
|
||||
concatBytes: (...parts) => Uint8Array.from(parts.flatMap(part => Array.from(part))),
|
||||
|
||||
Reference in New Issue
Block a user