
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
This is AEWeb repository!
This command line interface enables you to deploy files/ websites / folders (.jpg, .png, .pdf, .html, etc...) on top of Archethic Public Blockchain.
It also provide an API to format files content according to Archethic web hosting API.
To get the AEWeb CLI, you need NodeJS (latest version) installed. Then you need to install the CLI, using:
npm install aeweb -g
To check if AEWeb CLI is installed successfully, try :
aeweb about
To generate address you need -
seed is a string representing the transaction chain entropy to be able to derive and generate the keys for the transactionsindex is the number of transactions in the chain, to generate the current and the next public keyaeweb generate-address --seed myseedphrase --index 0
To deploy files, folder or website -
seed is a string representing the transaction chain entropy to be able to derive and generate the keysendpoint is the URL of a welcome node to receive the transactionpath is the path of the folder or file you want to deployaeweb deploy --seed myseedphrase --endpoint https://testnet.archethic.net --path ./website
To enable SSL certificates and HTTPS websites you can need -
ssl-certificate PEM file of the public certificate for your domainssl-key PEM file of the private key related to your certificate for your domain (The key will be encrypted for the Archethic nodes - so only them would be able to decrypt it to deliver your website in HTTPS)aeweb deploy --seed myseedphrase --endpoint https://testnet.archethic.net --path ./website --ssl-certificate example-com-cert.pem --ssl-key example-com-key.pem
First you need to instanciate an AEWeb object with a instance of Archethic from libjs
import AEWeb from 'aeweb'
import Archethic from 'archethic'
const archethic = new Archethic('http://mainnet.archethic.net')
const aeweb = new AEWeb(archethic)
This function compress the file in gzip format and create one or multiple content structure for the transactions
filePath is the path of the file from the root directorydata is the content of the fileFor a folder containing these files
root_folder
│ index.html
│ app.js
│
└───assets
│ │ image.png
The filePath parameter should be index.html, app.js and assets/image.png
const aeweb = new AEWeb(archethic)
const data = readFile(filePath)
aeweb.addFile(filePath, data)
This function returns an array of the files transactions (see AEWeb documentation for more details). Transaction are instance of libjs transaction (archethic.transaction.new()). These transactions need to be signed.
An empty array is returned if no transaction can be created.
const aeweb = new AEWeb(archethic)
// Use aeweb.addFile for each needed file
const transactions = aeweb.getFilesTransactions()
transactions.forEach(tx => {
tx.build(seed, index).originSign(originPrivateKey)
})
This function returns the reference transaction (see AEWeb documentation for more details). This transaction needs to be signed.
transactions is an array of the files transactions previously signed.This function is asynchronous and return a Promise
const archethic = new Archethic()
const aeweb = new AEWeb(archethic)
// Use aeweb.addFile for each needed file
// Get transactions with aeweb.getFilesTransactions() and sign them
const refTx = await aeweb.getRefTransaction(transactions)
refTx.build(seed, index).originSign(originPrivateKey)
This function add the SSL certificate in the content and the SSL key in the secret in the reference transaction. This function needs to be called before getRefTransaction
sslCerticate is the SSL certificatesslKey is the SSL private keyconst aeweb = new AEWeb(archethic)
const sslCertificate = getSSLCertificate()
const sslKey = getSSLKey()
aeweb.addSSLCertificate(sslCertificate, sslKey)
This function clear all data stored in AEWeb instance (files data and SSL certificate / key)
const aeweb = new AEWeb(archethic)
aeweb.reset()
Thank you for considering to help out with the source code. We welcome contributions from anyone and are grateful for even the smallest of improvement.
Please to follow this workflow:
AGPL
FAQs
A cli to deploy websites on top of Archethic
We found that aeweb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.