feat(trust): full Duniter web-of-trust membership (params + referents)
Slice 4 of Block 2. The pure rule was already parameterised; this adds the policy, cold-start and UI around it. - commons_core: WotParams (sigQty/stepMax/sigValidity, Duniter defaults) + WebOfTrust.membersWith; npubToHex helper (NIP-19 decode) for adding roots. - WotSettings (keystore): the active parameters, configurable — a young network loosens them and tightens as it grows, as Ğ1 did. Defaults Duniter. - TrustReferents: the bootstrap 'seeds' membership is measured from — a bundled asset (empty until real founders are curated, no invented keys) unioned with referents the user adds by npub/QR. Honest cold-start. - TrustCubit: computes the full membership verdict against referents+params alongside the personal circle, and exposes a TrustTier (networkMember > inYourCircle > vouched > unknown). Certifications issued with the active validity (they expire and renew, Duniter rule). - UI: chat trust badge by tier; a 'Network of trust' screen (manage roots + advanced params) reached from the profile. i18n en/es/pt/ast. Tests: WotParams/membersWith, npubToHex, TrustReferents, WotSettings, and TrustCubit tiers/membership. Resolves the WoT-parameters decision (open-decisions §B). Trust net stays empty/undetermined until seeded — by design; users bootstrap their own roots.
This commit is contained in:
parent
a96049dd36
commit
4cf53f259f
29 changed files with 1111 additions and 39 deletions
|
|
@ -75,6 +75,7 @@ class TranslationsPt extends Translations with BaseTranslations<AppLocale, Trans
|
|||
@override late final _Translations$chatList$pt chatList = _Translations$chatList$pt._(_root);
|
||||
@override late final _Translations$chat$pt chat = _Translations$chat$pt._(_root);
|
||||
@override late final _Translations$trust$pt trust = _Translations$trust$pt._(_root);
|
||||
@override late final _Translations$wot$pt wot = _Translations$wot$pt._(_root);
|
||||
}
|
||||
|
||||
// Path: app
|
||||
|
|
@ -761,6 +762,35 @@ class _Translations$trust$pt extends Translations$trust$en {
|
|||
@override String get vouch => 'Conheço esta pessoa';
|
||||
@override String get vouched => 'Avalizas esta pessoa';
|
||||
@override String get circle => 'No teu círculo';
|
||||
@override String get member => 'Membro de confiança da rede';
|
||||
}
|
||||
|
||||
// Path: wot
|
||||
class _Translations$wot$pt extends Translations$wot$en {
|
||||
_Translations$wot$pt._(TranslationsPt root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsPt _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Rede de confiança';
|
||||
@override String get open => 'Rede de confiança';
|
||||
@override String get help => 'Como se decide quem é membro de confiança: as pessoas avalizam-se entre si, e a confiança estende-se a partir de um conjunto de raízes fundadoras.';
|
||||
@override String get roots => 'Raízes de confiança';
|
||||
@override String get rootsHelp => 'As identidades fundadoras que ancoram a rede. Adiciona quem confias (cola o seu código de identidade); a filiação mede-se para fora a partir delas.';
|
||||
@override String get noRoots => 'Ainda não há raízes de confiança — não se pode calcular a filiação até semear a rede.';
|
||||
@override String get addRoot => 'Adicionar uma raiz de confiança';
|
||||
@override String get rootHint => 'Cola um código de identidade (npub…)';
|
||||
@override String get add => 'Adicionar';
|
||||
@override String get rootAdded => 'Raiz de confiança adicionada';
|
||||
@override String get rootInvalid => 'Esse não é um código de identidade válido';
|
||||
@override String get remove => 'Remover';
|
||||
@override String get params => 'Parâmetros avançados';
|
||||
@override String get paramsHelp => 'Regras Duniter. Afrouxa-as para uma rede jovem; aperta-as à medida que cresce.';
|
||||
@override String get sigQty => 'Avais para ser membro';
|
||||
@override String get stepMax => 'Distância máxima a uma raiz';
|
||||
@override String get validityDays => 'Validade do aval (dias)';
|
||||
@override String get reset => 'Repor para valores Duniter';
|
||||
@override String get saved => 'Guardado';
|
||||
}
|
||||
|
||||
// Path: intro.slides
|
||||
|
|
@ -1497,6 +1527,26 @@ extension on TranslationsPt {
|
|||
'trust.vouch' => 'Conheço esta pessoa',
|
||||
'trust.vouched' => 'Avalizas esta pessoa',
|
||||
'trust.circle' => 'No teu círculo',
|
||||
'trust.member' => 'Membro de confiança da rede',
|
||||
'wot.title' => 'Rede de confiança',
|
||||
'wot.open' => 'Rede de confiança',
|
||||
'wot.help' => 'Como se decide quem é membro de confiança: as pessoas avalizam-se entre si, e a confiança estende-se a partir de um conjunto de raízes fundadoras.',
|
||||
'wot.roots' => 'Raízes de confiança',
|
||||
'wot.rootsHelp' => 'As identidades fundadoras que ancoram a rede. Adiciona quem confias (cola o seu código de identidade); a filiação mede-se para fora a partir delas.',
|
||||
'wot.noRoots' => 'Ainda não há raízes de confiança — não se pode calcular a filiação até semear a rede.',
|
||||
'wot.addRoot' => 'Adicionar uma raiz de confiança',
|
||||
'wot.rootHint' => 'Cola um código de identidade (npub…)',
|
||||
'wot.add' => 'Adicionar',
|
||||
'wot.rootAdded' => 'Raiz de confiança adicionada',
|
||||
'wot.rootInvalid' => 'Esse não é um código de identidade válido',
|
||||
'wot.remove' => 'Remover',
|
||||
'wot.params' => 'Parâmetros avançados',
|
||||
'wot.paramsHelp' => 'Regras Duniter. Afrouxa-as para uma rede jovem; aperta-as à medida que cresce.',
|
||||
'wot.sigQty' => 'Avais para ser membro',
|
||||
'wot.stepMax' => 'Distância máxima a uma raiz',
|
||||
'wot.validityDays' => 'Validade do aval (dias)',
|
||||
'wot.reset' => 'Repor para valores Duniter',
|
||||
'wot.saved' => 'Guardado',
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue