Unity Network
  • Unity Network
    • Introduction
    • Unity Network FL Architecture
    • Data Security
    • Case Study
      • Flashback Overview
      • Registration
      • Integration
      • Model Training
      • Objectives and Outcomes
  • Unity Network SDK
    • Key Features
    • Registration
    • Node Setup
    • SDK Integration
      • Wallet Module
      • Node Module
  • Permissions Management
    • User Permissions
  • Model Training
    • Organization registration
    • Model Training Requests
    • Secure Training and Updates
      • Model Training
        • Model Loading and Initialization
        • Data Loading
        • Training
      • Secure Transmission of Encrypted Updates
        • ECDH Key Exchange for Secure Encryption Key Generation
        • Encrypt and Transmit Model Updates
        • Secure Aggregation and Decryption at Central Server
        • Distribute Updated Model and Continue Training
      • Sharing Model Updates with the Model Owner and Verifying Authenticity of Training
        • Construct the Merkle Tree and Commit to the Merkle Root
        • Log Hashes of Accessed Dataset Chunks During Training
        • Transmission of Model Updates, Merkle Proofs, and Hash Log to the Model Owner
        • Verification by the Model Owner
  • Training rewards
    • Incentivization Process
Powered by GitBook
On this page
  1. Permissions Management

User Permissions

  • Once the application is integrated with the Unity SDK, the next step is to onboard the organization’s data onto the network.

  • Whenever a user brings new data into the application, permissions will be asked to add this data to the network

  • Once the user gives the permission, the integrated SDK will store the permissions on-chain.

  • The permissions stored on-chain can be used for verifying the data authenticity

// Function to request and log user permissions on the blockchain
function logPermission(user, data) {
    UnitySDK.promptForPermission(data, function(response) {
        if (response.granted) {
            const permissionLog = {
                userId: user.id,
                dataId: data.id,
                timestamp: new Date().toISOString(),
                consent: true
            };
            UnitySDK.storePermission(permissionLog).then(() => {
                console.log('User permission logged on the blockchain as proof of data authenticity.');
            }).catch(err => {
                console.error('Failed to log permission:', err);
            });
        } else {
            console.log('User did not grant permission.');
        }
    });
}

PreviousNode ModuleNextOrganization registration

Last updated 7 months ago