what is the best way to store ASCII characters/strings on the ethereum blockchain? scenario: there are users that want to upload ONLY ASCII strings to the blockchain. these strings don't contain private info , so they can be stored as plaintext. this is my implementation, is there a better solution?
contract storagex {
mapping(address => string[]) public users;
function add(string memory _data) public {
users[msg.sender].push(_data);
}
function retrieve(address ad) public view returns (string[] memory) {
return users[ad];
}
}