Git Product home page Git Product logo

sia-datawallet-extension's Introduction

✨ ARC Data Wallet πŸ‘›

ARC Data Wallet is an easy way to use the SIA network for on-chain file storage with a ligt "wallet-like" browser extension. This solution enables private users to use the SIA storage network independently on any device without the need to download and sync the local SIA node. This project is developed under the SIA Foundation grant.

siaDataWallet final

This repository contains the ARC Data Wallet browser extension, it splits user's files into chunks, encrypts them with the user’s key and send them to the ARC Gateway for organizing storage in the SIA network.

Disclaimer

Thу work is in progress. You can see progress reports here.

Dependencies

Change in sia-lite-wallet-web-master:

Main net: https://api.siacentral.com/v2

Test net: https://api.siacentral.com/v2/zen

and rebuild:

nvm use 12.22.1

brew install [email protected]

~/.zshrc:
export GOPATH=$HOME/go
export GOROOT="/opt/homebrew/opt/[email protected]/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"

go mod download golang.org/x/net

make build

Copy sia-lite-wallet-web-master/src/sia/* to src/sia/.

Api generated from https://api.sia.tech/renterd using Postman to get the swagger.json file and then using swagger-typescript-api to generate the api.ts file.

npx swagger-typescript-api -p ./sia-data-wallet/src/services/openapi.yml -o ./sia-data-wallet/src/services -n api.ts --extract-response-error --extract-request-body --extract-request-params

renderd

./renterd --autopilot.scannerInterval=2m --autopilot.heartbeat=1m

Initial renterd setup:

curl -u ":test" -X PUT localhost:9880/api/bus/setting/redundancy --data '{
    "minShards": 1,
    "totalShards": 3
}'
curl -u ":test" -X PUT localhost:9880/api/autopilot/config --data '{  
"wallet": {  
"defragThreshold": 1000  
},  
"hosts": {  
"ignoreRedundantIPs": false,  
"scoreOverrides": {}  
},  
"contracts": {  
"set": "autopilot",  
"amount": 50,  
"allowance": "10000000000000000000000000000",  
"period": 6048,  
"renewWindow": 2016,  
"download": 1099511627776,  
"upload": 1099511627776,  
"storage": 1099511627776  
}  
}'
curl -u ":test" -X PUT localhost:9880/api/bus/setting/contractset --data '{  
"default": "autopilot"  
}'

.env file

BASE_URL=/
VITE_API_HOST=https://localhost:443
VITE_SIG_V2_SYMMETRIC=
VITE_SIG_V2_ASYMMETRIC=

##Related repos The ARC Gateway

sia-datawallet-extension's People

Contributors

dsrdrk11a avatar

Watchers

Dmitrii Putilov avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.